In this chapter, I’ll discuss some important topics that are closely related to classes and objects. If you are absolutely new to object-oriented programming, to understand each topic, you may need to come back to this chapter once you have finished Chapter 10.
Static Variables and Methods
Up until now, you have seen that a class can have either variables or methods or both. Collectively, these are called class members. These variables and methods are called instance variables and instance methods because each time you instantiate a class, a new copy ...