In this chapter, you're going to learn how to create classes and objects in Java. Object-oriented programming allows us to explain highly complicated systems to the computer and also ourselves. In addition, there's a lot more to learn about object-oriented programming in terms of how objects fit together, the kinds of relationships they can have, and what we can do with objects to make our programs easier to write. We will also walk through the topics of creating custom classes, member variables, and member functions. Finally, we will look into a very special member assigned to our custom classes, that is, the constructor, and types of constructor.
We are going to cover the following topics in this chapter:
- Creating classes and objects
- Creating custom classes
- Creating member variables
- Creating member functions
- Creating constructors...