February 2014
Beginner
1248 pages
62h 25m
English
• A subclass cannot access the private members of its superclass, but it can access the non-private members.
• A subclass can invoke a constructor of its superclass by using the keyword super, followed by a set of parentheses containing the superclass constructor arguments. This must appear as the first statement in the subclass constructor’s body.
• A superclass method can be overridden in a subclass to declare an appropriate implementation for the subclass.
• The @Override annotation (p. 369) indicates that a method should override a superclass method. When the compiler encounters a method declared with @Override, it compares the method’s signature with the superclass’s method signatures. ...
Read now
Unlock full access