Define a Class in C++. (HOUSING)
Define a class named HOUSING in
C++ with the following descriptions:
Private members
- · REG_NO Integer (Ranges 10-1000)
- · NAME Array of characters(String)
- · TYPE Character
- · COST Float
Public members
- · Read_Data() Function to read an object of HOUSING type
- · Display() Function to display the details of an object
- · Draw_Nos() Function to choose and display the details of 2 houses selected randomly from an array of 10 objects of type HOUSING. Use random function to generate the registration number to match with REG_NO from the array.
No comments
Post your comments