What I Learned/Java3 Java Final Summary 1. Three Reference Types a. (arrays) b. Classes c. Interfaces - consisted entirely of constants and abstract methods - it cannot be instantiated - all of its abstract methods must be overridden in the first concrete subclass - can have multiple interfaces - implement rather than extends i.e. public interface Comparable { public int compareTo(E o); } 2. Abstract Class VS Interfaces a. must import.. 2019. 4. 21. Hybrids (1~7) Summary Hybrid 1 - UML + public - private # protected INTEREST_RATE final > interface numberOfAccounts static calculatePat() abstract 1. class name 2. class field 3. constructor(s) 4. methods 1. interface 2. composition 3. inheritance 4. aggregation aggregation - composition Hybrid 2 - Debug Hybrid 3 - Java Static Members (Part1) A class is loaded once into memory, and it is always the same class member.. 2019. 4. 21. Java Quiz Summary word => means it was on the exam 1. Inheritance Inheritance allows a subclass to be derived from its parent superclass. The subclasses will inherit all the non-private members (fields and methods). Inheritance is a form of code reuse. Once subclass was inherited, no need to use super to access superclass methods; they are inherited automatically. 2. VS : Inheritance : Aggregation and Composition.. 2019. 4. 8. 이전 1 다음