Skip to content · ⁨ข้ามไปยังเนื้อหา⁩
English

A class is a blueprint

  • A class defines a new kind of thing — a user-defined type.
  • An object is one item made from that class.
  • One Dog class can make many dog objects, each with its own data.

ไทย

Class คือแบบร่าง

  • Class กำหนดประเภทของสิ่งใหม่ — User-defined type
  • Object คือหนึ่งรายการที่ทำจาก class นั้น
  • One Dog class สามารถสร้างหลาย object ของสุนัข ได้แต่ละตัวมีข้อมูลของตัวเอง

A Point class is a blueprint; p and q are objects, each with its own x and y

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP