The local class is never instantiated together with its enclosing class and neither is it associated with instances in the enclosing class (Phillips, 2010).
Also known as derived, child or heir class inherits its traits from another or other class (es) known as the parent, base classes or superclasses. The subclass inherits member functions and instance variables from its superclass. While naming a sub class you use a colon the derived class name and its base name. You also show the visibility mode of the parent class as either private or public (Phillips, 2010).
These are procedures or behavior associated with objects in a class. They also act as a link of the objects to the rest of the world. Methods have a unique feature known as overwriting that allows objects to activate their behavior or action to a receiving object. They also allow for modification of the data of an object (Phillips, 2010).
In object oriented programming, behaviors of the objects instantiated in the parent class are the methods. Sub classes relate with the parent class by inheriting objects and their behaviors which are the unique traits of the