5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

Aspire     Java Novice to Javanista     Java Novice to Javanista Track 1: Java Novice
Method overriding is a way in which a derived class can redefine - and override - the implementation of a method already defined in a base class. By overriding only those methods you absolutely need to and relying on the base class implementations for all others, you get a lot done with relatively little new code. Use this course to learn how to carry out this technique.
Explore the somewhat surprising behavior of static methods and the phenomenon known as hiding. Use the final keyword to mark member variables, member functions, and even entire classes.
Use the abstract keyword to indicate a given method is not implemented. Study the semantics of the access modifiers public, private, protected, and package-private.
When you're done, you'll recognize how overriding differs from hiding, the semantics of access modifiers, and how abstract classes are used.

Objectives

Mapping Relationships in Java: Overriding Methods and Using Access Modifiers

  • discover the key concepts covered in this course
  • override methods to have different method implementations in derived classes
  • use the super keyword in overridden methods
  • identify method hiding when redefining static methods with the same name
  • use the final modifier to restrict a field from being initialized except in constructors
  • use the final modifier with methods to prevent overriding and with classes to prevent inheritance
  • list the characteristics of an abstract class
  • use abstract base classes in inheritance hierarchies
  • use the private access modifier to restrict access to fields and methods
  • contrast the restrictions offered by the public and private access modifiers
  • use factory methods to instantiate objects with private constructors
  • use the protected access modifier to restrict access to derived classes and classes in the same package
  • investigate the nuances of the protected access modifier
  • use the default modifier to restrict access to other classes in the same package
  • summarize the key concepts covered in this course