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
Java is an object-oriented programming language, meaning Java programs and frameworks are built on the pillars of inheritance and runtime polymorphism. Inheritance is used to model is-a relationships between classes; such relationships could include either behavior and state or just behavior alone.
Use this course to appreciate how classes can be used to model an entity's state and behavior and inheritance to model is-a relationships between two classes.
Create various objects of the universal base class Java.lang.Object and of other built-in and custom classes. Use the instanceof operator and the getClass method. Create an inheritance hierarchy out of custom classes. Then, practice using up-casting and down-casting on your objects to explore the relationship between variable types, object types, and inheritance.
By the time you're finished, you'll clearly understand how inheritance is a powerful mechanism for code re-use and modeling is-a relationships in Java.

Objectives

Mapping Relationships in Java: Modeling Is-a Relationships Using Inheritance

  • discover the key concepts covered in this course
  • outline how classes and inheritance can be used to model relationships
  • model is-a relationships using the inheritance hierarchy
  • recall how inheritance, polymorphism, and encapsulation are used in Java
  • identify the existence of the universal Object base class
  • examine methods inherited from the universal Object base class
  • implement custom and built-in classes derived from the Object base class
  • use the instanceof operator to identify types for objects
  • identify the compile-time and runtime types for objects
  • store objects of a derived class type in a variable of the base class type
  • set up an inheritance hierarchy using custom classes
  • identify the roles of the type of variable and type of object contained in the variable
  • perform up-casting and down-casting operations on objects
  • examine the inheritance of fields and methods in derived classes
  • summarize the key concepts covered in this course