■
Note
In Chapter 4 you learned that C# structures are always implicitly sealed (see Table 4-3). Therefore, you
can never derive one structure from another structure, a class from a structure or a structure from a class.
As you would guess, there are many more details to inheritance that you will come to know
during the remainder of this chapter. For now, simply keep in mind that the colon operator allows
you to establish base/derived class relationships, while the sealed keyword prevents inheritance
from occurring.
Do'stlaringiz bilan baham: