https://www.google.com/contributor/welcome/?utm_source=publisher&utm_medium=banner&utm_campaign=2376261057261409

Search This Blog

Search with our Site

Custom Search

Thursday, January 17, 2013

cs304 Assignment 03 Solution 2013



#include<iostream.h>
class PropertyCategories // .............. Base Class
{
private:
char Area[50];
char SocietyName[50];

public :
PropertyCategories()
{
cout"Base Class\n";
}
~PropertyCategories(){}
void setArea(char a[50])
{
Area[50]=a[50];
}

void setSocietyName(char s[50])
{
SocietyName[50]=s[50];
}

char getArea()
{
return Area[50];
}

char getSocietyName()
{
return SocietyName[50];
}

};
class Plot:public PropertyCategories // .............. Drive (plot)
{
private:
int plotno;
public :
Plot(){}
~Plot(){}
bool isPlotAllocated()
{}
bool isComerPlot()
{}
bool isDeveloped()
{}

};
class Flat: public PropertyCategories //// .............. Drive (Falt)
{
private:
Plot *plot;
int flatno;
public :
Flat()
{

}

~Flat()
{
delete plot;
}
bool isOccuiped()
{}

};
class House :public PropertyCategories // .............. Drive (House)
{
private:
Plot *plot;
int houseno;
public :
House()
{ }
~House()
{
delete plot;
}
bool isOccuiped()
{}
};

main()
{
system("pause");
}

No comments:

Post a Comment