Announcements and Reminders
|
||
RecordingInheritanceInheritance is a relationship between two classes such that one class takes on (inherits) the properties and behaviors (types, data members and member functions) of another class. The derived class inherits from a base class. This process facilitates code reuse and is a formal method of expressing relationships between types.Notes 5 Examples
|
||
Lab Exercise #10This lab exercise is due Thursday, 11/26 at 1:30 pmPut your name, the compiler and operating system used, and Lab Exercise 10 in a comment at the top of your program. Email your source code. Create a Rectangle and a Square class. Derive the
Square from the Rectangle class. Make use of the fact that a
Square is the same as a Rectangle with equal length and width.
****** OUTPUT ******
|