class / object
🏎️ Blueprint (class) vs actual built toy car (object)
Object-oriented blueprint and instance.
中文对照 · Chinese
🏎️ 乐高拼装图纸(Class)与拼好的玩具车(Object)
面向对象编程的核心,把属性数据和功能函数封装在一起。
Code example
class Robot {
public: int x, y;
};Explore 100 bilingual word cards →