C# Programming II – Lesson 6

Outline Chapter 11 Inheritance Continued Diagraming Is-A relationship Constructors Protected Problem 11.5 (Shape Inheritance Hierarchy) The world of shapes is much richer than the shapes included in the inheritance hierarchy of Fig. 11.3. Write down all the shapes you can think of—both two-dimensional and three-dimensional—and form them into a more complete Shape hierarchy with as…

C# Programming II – Lesson 4

Outline Chapter 10 Override Methods ToString() Garbage Collection Object Initializers Override Methods An override method provides a new implementation of a member that is inherited from a base class. The method that is overridden by an override declaration is known as the overridden base method. The overridden base method must have the same signature as…