In practice,
object-oriented programming has two parts. One part is the strategies
andtechniques for designing a program (often called object-oriented
design). This is a broad subjectand is not discussed in this chapter.
The other part of OOP is the actual programmingstructures that are
available in a given programming language to build a program using
anobject-oriented approach. This chapter covers the following common
tasks in OOP:
- Defining classes
- Creating properties, methods, and get and set accessors (accessor methods)
- Controlling access to classes, properties, methods, and accessors
- Creating static properties and methods
- Creating enumeration-like structures
- Defining and using interfaces
- Working with inheritance, including overriding class elements