Superclass/ parent class - Class that is extended, Subclass/child class - Class that inherits, Inheritance - Allows programmer to reuse data/behaviors from a parent class. Allows for generalization., Precise number of parent classes a subclass can have - 1, Constructors - Are NOT inherited, Overriding - Modifying a method in a subclass. Occurs when a public method in a subclass has the same method signature as a public method in the superclass., super() keyword - Used to call a superclass's constructors and methods, Polymorphism - Ability of a programming language to present the same interface for several different underlying data types., UML (Unified Modeling Language) - Diagram the shows classes & relationships between classes, extends keyword - Keyword used to make a subclass inherit from a superclass, Object Superclass - Superclass of all other classes in Java, toString() method - Used to print out the attributes of an object, .equals() method - test if two references point to an object with the exact same criteria (aliases of each other), == - Tests if two objects are the exact same object,
0%
Unit 9: Inheritance
แชร์
แชร์
แชร์
โดย
Schoenikel
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
จับคู่
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม