Page 27 - CSharp/C#
P. 27
Examples 458
Instantiate 'Fontfamily' from Resources 458
Integration method 458
Usage with a 'Button' 459
Chapter 81: Indexer 460
Syntax 460
Remarks 460
Examples 460
A simple indexer 460
Indexer with 2 arguments and interface 460
Overloading the indexer to create a SparseArray 461
Chapter 82: Inheritance 462
Syntax 462
Remarks 462
Examples 462
Inheriting from a base class 462
Inheriting from a class and implementing an interface 463
Inheriting from a class and implementing multiple interfaces 463
Testing and navigating inheritance 464
Extending an abstract base class 465
Constructors In A Subclass 465
Inheritance. Constructors' calls sequence 466
Inheriting methods 468
Inheritance Anti-patterns 469
Improper Inheritance 469
Base class with recursive type specification 470
Chapter 83: Initializing Properties 473
Remarks 473
Examples 473
C# 6.0: Initialize an Auto-Implemented Property 473
Initializing Property with a Backing Field 473
Initializing Property in Constructor 473

