Create a class called Home that contains 4 pieces of information as instance variables: county (datatype string), street (datatype string), housenumber (datatype int), state (datatype string).

Respuesta :

Answer:

class Home // create class Home

{

// instance variable declaration

string county; // variable county of string datatype

string street; // variable street of string datatype

int housenumber; // variable housenumber of int datatype

string state; // variable state of string datatype

}

Explanation:

Here we declared a class 'Home ' which consist of 4 instance variable.

The instance variable are declared inside the class.We declared  variable county,street,state as string type and housenumber as integer type.

ACCESS MORE