Chapter 10. Classes and Interfaces
Learning about different types of classes
Using interfaces to create polymorphic classes
As I briefly discuss in Chapter 3, classes are a very important construct of Object-Oriented Programming and can be considered a blueprint for creating objects. Further, these classes encapsulate State and Behavior. Behavior is encapsulated into methods (sometimes referred to as functions), and State is encapsulated in data placeholders called member variables, also known as properties. There are different types of classes, and we will go over many of them in this chapter. Similar to classes are an Object-Oriented Programming ...