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

Using objects: String, Math, and wrappers · ⁨การใช้ objects: String, Math, และ wrappers⁩

English

Using objects

  • An object is a value that knows how to do things. You call its methods with a dot ..
  • A String is an object. Math, Integer, and Double give you ready-made tools.
  • In this lesson you learn to make objects and use their methods.

ไทย

การใช้ objects

  • An objectคือ value ที่รู้วิธีทำสิ่งต่างๆ คุณเรียก methods ของมันด้วยจุด .
  • A String เป็น object. Math, Integer, และ Double ให้เครื่องมือสำเร็จรูปแก่คุณ
  • ในบทเรียนนี้คุณจะได้เรียนรู้ที่จะ สร้าง objects และ ใช้ methods ของ它们

การเรียกใช้ length, max หรือ toUpperCase จะทำงานตาม method และส่งค่ากลับมา

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

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

IGCSE, A-Level & AP