Lecture overview -- Keyboard shortcut: 'u'  Previous page: Constructors and initialization order -- Keyboard shortcut: 'p'  Next page: Visibility modifiers in C# -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 26 : 40
Object-oriented Programming in C#
Specialization, Extension, and Inheritance
Constructors and initialization order: Example

Instantiation of class C that inherits from class B that inherits from class A

/user/normark/oop-csharp-1/sources/c-sharp/inheritance/constructors-inheritance-2/c.csInitializers and constructors of class C.


/user/normark/oop-csharp-1/sources/c-sharp/inheritance/constructors-inheritance-2/b.csInitializers and constructors of class B.


/user/normark/oop-csharp-1/sources/c-sharp/inheritance/constructors-inheritance-2/a.csInitializers and constructors of class A.


/user/normark/oop-csharp-1/sources/c-sharp/inheritance/constructors-inheritance-2/init.csThe class Init and the method InitMe.


/user/normark/oop-csharp-1/sources/c-sharp/inheritance/constructors-inheritance-2/app.csA program that instantiates and initializes class C.


/user/normark/oop-csharp-1/sources/c-sharp/inheritance/constructors-inheritance-2/outputThe output that reveals the initialization order.