11-30-2012, 04:31 PM
Idea Solution :
#Include<iostream.h>
main(void)
{
class PropertyPortal
{
private:
int NoOfUsers;
char *UAN;
char *Name;
public:
void setNoOfUser(int No); // setting the day
void setUAN(char Uan); // setting the month
void setName(char Name); // setting the year
int getNoOfUser(); // getting the value of day
int getUAN(); // getting the value of month
int getName(); // getting the value of year
int getPropertyInfo();
// Constructors of the class
PropertyPortal();
PropertyPortal (int, char);
PropertyPortal(int, char, char);
// Destructor of the class
~PropertyPortal ();
// hidden part of the class
void setNoOfUser(int i)
{
NoOfUsers=i;
}
void setUAN(char i)
{
}
PropertyPortal()
{
NoOfUsers=0;
UAN=NULL;
Name=NULL;
}
PropertyPortal (int No, char* Uan)
{
NoOfUsers=No;
UAN=Uan
Name=VU-Real-Estate;
}
PropertyPortal(int No, char* Uan, char* Name)
{
NoOfUsers=No;
UAN=Uan
Name=Name;
}
void setNoOfUser(int i)
void setUAN(char i); // setting the month
void setName(char i); // setting the year
int getNoOfUser(); // getting the value of day
int getUAN(); // getting the value of month
int getName(); // getting the value of year
int getPropertyInfo();
};
class PropertyType
{
private:
char *City;
public:
void setCity(char a); // setting the City
int getCity(char a);//get the city
void GetPropertyType();
PropertyType();
PropertyType(char);
~PropertyType();
PropertyType()
{
city=NULL;
}
PropertyType(char* acity)
{
City=acity
}
};
class Commercial:public PropertyType
{
private:
int PropertyValue;
public:
void GetPlot();
void setPropertyValue();
int getPropertyValue();
Commercial();
Commercial(char);
~Commercial();
};
class Residential:public PropertyType
{
private:
int PropertyValue;
public:
void GetPropertyCatagory();
void setPropertyCatagory();
Residential();
Residential(int);
~Residential();
};
}
#Include<iostream.h>
main(void)
{
class PropertyPortal
{
private:
int NoOfUsers;
char *UAN;
char *Name;
public:
void setNoOfUser(int No); // setting the day
void setUAN(char Uan); // setting the month
void setName(char Name); // setting the year
int getNoOfUser(); // getting the value of day
int getUAN(); // getting the value of month
int getName(); // getting the value of year
int getPropertyInfo();
// Constructors of the class
PropertyPortal();
PropertyPortal (int, char);
PropertyPortal(int, char, char);
// Destructor of the class
~PropertyPortal ();
// hidden part of the class
void setNoOfUser(int i)
{
NoOfUsers=i;
}
void setUAN(char i)
{
}
PropertyPortal()
{
NoOfUsers=0;
UAN=NULL;
Name=NULL;
}
PropertyPortal (int No, char* Uan)
{
NoOfUsers=No;
UAN=Uan
Name=VU-Real-Estate;
}
PropertyPortal(int No, char* Uan, char* Name)
{
NoOfUsers=No;
UAN=Uan
Name=Name;
}
void setNoOfUser(int i)
void setUAN(char i); // setting the month
void setName(char i); // setting the year
int getNoOfUser(); // getting the value of day
int getUAN(); // getting the value of month
int getName(); // getting the value of year
int getPropertyInfo();
};
class PropertyType
{
private:
char *City;
public:
void setCity(char a); // setting the City
int getCity(char a);//get the city
void GetPropertyType();
PropertyType();
PropertyType(char);
~PropertyType();
PropertyType()
{
city=NULL;
}
PropertyType(char* acity)
{
City=acity
}
};
class Commercial:public PropertyType
{
private:
int PropertyValue;
public:
void GetPlot();
void setPropertyValue();
int getPropertyValue();
Commercial();
Commercial(char);
~Commercial();
};
class Residential:public PropertyType
{
private:
int PropertyValue;
public:
void GetPropertyCatagory();
void setPropertyCatagory();
Residential();
Residential(int);
~Residential();
};
}
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
