C++
Class and Object in C++
seoca
2018. 11. 6. 06:26
Class and Object in C++
- Data and functions are created in class and an object is created through a class.
- How to declare an object is almost the same way which we declare normal variables.
- Class members are private by default.
- To allocate memory, a name should be given as an instance
Example code