You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+Superclass makes certain promises about available methods and instance variables. These promises must be kept by all child classes. But the implementation of these promises can be overridden.
+Sometimes a superclass needs to make a promise but not implementation => use abstract: abstract class can not be instantiated
_Abstract class
+A class that extends an abstract class must: implement all abstract methods or also be an abstract class.
+Properties: Must provide constructors: private and protected constructors, child classes can reference these with super
+Provide as many as method implementations as possible
_”Multiple inheritance”
+A clone of an object is equal in content but distinct in memory footprint
+Clone is not just a copy of object’s memory, but of all of its component objects (and their components, etc.)
*Java restriction:
+If a class inherits from Cloneable class, it can not inherit from other classes
The interface
+An interface defines no implementation – only a set of abstract methods