Please enable JavaScript.
Coggle requires JavaScript to display documents.
Object Oriented Design, SOLID Principles, Covariant approach (Method…
Object Oriented Design
-
Polymorphism
Run time (dynamic)
Method Overriding
Determine which Method will call according to the parent class pointer pointing to which sibling class on run time
-
-
-
-
-
Covariant approach (Method Overriding)
The overriding method can return the subclass of the object returned by the original or overridden method.
Ex: overriding clone() method, which is declared in java.lang.Object
-