class / object
🏎️ 乐高拼装图纸(Class)与拼好的玩具车(Object)
面向对象编程的核心,把属性数据和功能函数封装在一起。
English
🏎️ Blueprint (class) vs actual built toy car (object)
Object-oriented blueprint and instance.
代码示例
class Robot {
public: int x, y;
};探索 100 张双语词卡 →面向对象编程的核心,把属性数据和功能函数封装在一起。
🏎️ Blueprint (class) vs actual built toy car (object)
Object-oriented blueprint and instance.
class Robot {
public: int x, y;
};探索 100 张双语词卡 →