Object Oriented Programming using C#
Inheritance and Method Overriding
Feedback 3
A house is a type of building and can therefore inherit the attributes of building however this is not true of a car. We cannot
place two classes in an inheritance hierarchy unless we can use the term is a.
Note class names, as always, begin in uppercase.
Activity 4
Describe the following using a suitable class diagram showing ANY sensible relationship...
a building for rent
this will have a method to determine the rent
a house for rent
this will inherit the determine rent method
a rent collector (person)
this person will use the determine rent method to print out a bill