Define a houshing class in c++
CPP

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: function read data () to read an object of housing type 

function display() to display details of an object 

function draw nos() 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 numbers to match which Reg-no from the ar

Author: SemantiChakladar
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer