Question: Write the following C# classes: - AtestProvinceObjects class 0 Instantiate 2 Province and 2 Cities objects. 0 Print the value of their attributes 0 Have

 Write the following C# classes: - AtestProvinceObjects class 0 Instantiate 2Province and 2 Cities objects. 0 Print the value of their attributes

Write the following C# classes: - AtestProvinceObjects class 0 Instantiate 2 Province and 2 Cities objects. 0 Print the value of their attributes 0 Have the objects called each method from the class they are instantiate from. 0 Have the objects instantiated from the child class call the parent class methods that can be called. - A Province class 0 Attributes: string name, int population, string capital 0 Methods: electPremierj), buildsHouses(), collectsProvincialTaxesO, add 2 more relevant methods of your choice. 0 The functional details of each method would be your choice. 0 The return type and parameters for each method are your choice. 0 At least 1 method should be private and 1 should be protected. - A Cities class 0 Attributes: string mayor 0 Methods: collectsPropertyTaxes(), repairsRoadj), collectsGarbagej) o The functional details of each method would be your choice. 0 The return type and parameters for each method are your choice. 0 At least 1 method should be private and 1 should be protected. Evaluation: \"P Evaluation Criteria Points Student Points Province class: - Attributes 5 - Methods (5 points per method) 25 City class: - Attributes 5 - Methods (5 points per method) 15 testProvinceObjects: - Instantiating objects from Provinces and Cities 5 - Printing values of their Attributes 5 - Calling methods from the parent class 5 - Calling methods from the child class 5 Total 70

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!