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…

C# Programming II – Lesson 2

Outline Chapter 10 Constructors Default/Parameterless Overloaded Constructors Destructors Static Class Members Read Only Instance Field Constructors We introduced the concept of a class constructor last week. We will expand on it this week using overloaded constructors. A class can support one to many constructors in a class. It must follow these rules: All constructors must…