section6 QandA
peter Stewart 4/9/2018
Answerers
- A class is the blueprint of an Object and an Object is the variable made using the class.instantiate means that is is declared created.
- some of the benefits of using classes are that one you don't have to rewrite code two you can finish making one class and then not worry about breaking it.Three it adds a lair of abstraction.
- another name for a classes variables is member or instance variables
- The reason you would make a classes variables privet would be so that the user of that class could not directly edit variables of importance.
- A function inside a class is called a member function.
- A constructor is a function that gets called automatically when you create your Object.
go back