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
编辑内容
打印
嵌入
更多
作业
排行榜
显示更多
显示更少
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
匹配游戏
是一个开放式模板。它不会为排行榜生成分数。
需要登录
视觉风格
字体
需要订阅
选项
切换模板
显示所有
播放活动时将显示更多格式。
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?