Class Definition
In this lesson, we will learn about the first steps in creating a class.
We'll cover the following
Similar to functions, classes need to be created outside the main()
. The written code of a class and its attributes are known as the definition or implementation of the class.
Definition Template
In C++, we define classes in the following way: