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

Java    |    Intermediate
  • 15 videos | 1h 39m 26s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 144 users Rating 4.6 of 144 users (144)
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.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • 1m 42s
  • 6m 16s
  • Locked
    3.  Expressing Is-a Relationships
    9m 25s
  • Locked
    4.  Features of Object Oriented Programming
    7m 23s
  • Locked
    5.  Characterizing the Java.lang.Object Base Class
    7m 4s
  • Locked
    6.  Examining Object Base Class Inherited Methods
    11m 14s
  • Locked
    7.  Exploring the Java.lang.Object Base Class
    6m 24s
  • Locked
    8.  Using the instanceof Operator
    7m 4s
  • Locked
    9.  Exploring Compile-time and Runtime Types
    6m 43s
  • Locked
    10.  Instantiating Objects of Base and Derived Classes
    5m 10s
  • Locked
    11.  Creating Inheritance Hierarchies
    8m 33s
  • Locked
    12.  Identifying the Roles of Variable and Object Types
    9m 32s
  • Locked
    13.  Up-casting and Down-casting Operations
    5m 26s
  • Locked
    14.  Examining the Inheritance of Fields and Methods
    5m 37s
  • Locked
    15.  Course Summary
    1m 54s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.6 of 128 users Rating 4.6 of 128 users (128)
Rating 4.5 of 86 users Rating 4.5 of 86 users (86)
Rating 4.6 of 25 users Rating 4.6 of 25 users (25)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.3 of 78 users Rating 4.3 of 78 users (78)
Rating 4.6 of 4198 users Rating 4.6 of 4198 users (4198)
Rating 4.4 of 38 users Rating 4.4 of 38 users (38)