Summary

Object-oriented programming is based on three primary concepts: encapsulation, polymorphism, and inheritance. A class declaration consists of attributes, modifiers, a name for the class, and the class body. The modifiers that can be used with classes are new, public, protected, internal, private, abstract, and sealed. Class members can be categorized as constants, fields, methods, properties, events, indexers, operators, instance constructors, destructors, static constructors, and types.

Get Special Edition Using C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.