Mapping Relationships in Java: Modeling Is-a Relationships Using Inheritance
Java
| Intermediate
- 15 videos | 1h 39m 26s
- Includes Assessment
- Earns a Badge
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 courseOutline how classes and inheritance can be used to model relationshipsModel is-a relationships using the inheritance hierarchyRecall how inheritance, polymorphism, and encapsulation are used in javaIdentify the existence of the universal object base classExamine methods inherited from the universal object base classImplement custom and built-in classes derived from the object base classUse the instanceof operator to identify types for objects
-
Identify the compile-time and runtime types for objectsStore objects of a derived class type in a variable of the base class typeSet up an inheritance hierarchy using custom classesIdentify the roles of the type of variable and type of object contained in the variablePerform up-casting and down-casting operations on objectsExamine the inheritance of fields and methods in derived classesSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 42s
-
6m 16s
-
9m 25s
-
7m 23s
-
7m 4s
-
11m 14s
-
6m 24s
-
7m 4s
-
6m 43s
-
5m 10s
-
8m 33s
-
9m 32s
-
5m 26s
-
5m 37s
-
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.