Object-oriented class ---

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_44779847/article/details/102732453

1. What is the class? What is an object?
1) the real world is a lot of objects in
object-based extraction class
2) Target: real existence of a single individual
categories: type / class, on behalf of a class of individuals
3) class can contain:
3.1) target common attributes / feature ------------- member variable
3.2) objects common to conduct ------------------ method
4) a class can create multiple object
objects created by the same type, the same structure, different data
5) class is a template object, the object is a specific instance of the class
2. how to create a class? How to create an object? How to access a member?

Guess you like

Origin blog.csdn.net/qq_44779847/article/details/102732453