Java เป็นภาษาเชิงวัตถุ โครงสร้างส่วนกลางคือชั้นเรียน คลาสจะอธิบายโครงสร้างและพฤติกรรมของออบเจ็กต์: ข้อมูลใดที่วัตถุนั้นเก็บไว้ (ฟิลด์) และสิ่งที่วัตถุสามารถทำได้ (วิธีการ) วัตถุเป็นตัวอย่างที่เป็นรูปธรรมของคลาสที่สร้างขึ้นในหน่วยความจำ

ชั้นเรียนเป็นพิมพ์เขียว
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.