Working with Inheritance (Java SE 8 Programmer I Certification 1Z0-808)
Having a good understanding of the Java Type System is mandatory to maintain and extend any Java application. This course explains you how encapsulation, abstraction, inheritance and polymorphism have been implemented in the Java language.
What you'll learn
Every object oriented language implements the four fundamental concepts of object: encapsulation, abstraction, inheritance, and polymorphism. The Java does this in its own way, which differs from other languages. In this course, Working with Inheritance (Java SE 8 Programmer I Certification 1Z0-808), you will learn how object oriented concepts have been implemented and you will see all the key points you need for the certification. First, you will learn what these four concepts are and how Java implemented them. Next, you will learn what a class is and what you can put in it, how a class can extend another class and what are the consequences and limits of extension. Moving forward, you will learn how you can model behavior with interfaces in Java, and you'll see the precise mechanism for how objects are created, how their constructors are invoked, and how they call each other. Finally, you will learn how primitive types are working and how they differ from classes. When you are finished with this course, you will be ready to pass the corresponding chapters of the Java SE 8 I Programmer certification.
Table of contents
- Introducing the Module and Its Agenda 2m
- What Are You Going to Learn? What Do You Need to Know? 1m
- Agenda of the Course 2m
- The Four Principles of Object Oriented Programming 1m
- Abstracting Concrete Ideas to Create Classes and Objects 2m
- Encapsulating Data to Control the State of Your Object 2m
- Live Demo: Using Encapsulation to Validate the State of an Object 7m
- Module Wrap Up 2m
- Introducing the Module and Its Agenda 1m
- Adding Fields to a Class with a Type and a Visibility Modifier 2m
- Declaring a Method with a Returned Type and Parameters 1m
- Defining the Signature of a Method 2m
- Adding Constructors to a Class with Parameters 1m
- Overloading Methods and Constructors 0m
- Using Visibility Modifiers to Hide or Expose Class Members 1m
- Defining the Available Visibility Modifiers 3m
- Laying out Objects in the Memory of Your Application 1m
- Getting a Reference to a New Object, Using the This Keyword 2m
- Comparing References to Different Objects 1m
- Adding Static Fields and Methods to a Class 2m
- Passing by Value and Passing by Reference 4m
- Live Demo: Seeing Visibility Modifiers in Action 4m
- Live Demo: Passing Elements by Value and by Reference 4m
- Module Wrap Up 2m
- Introducing the Module and Its Agenda 1m
- Extending a Class with Another Class 2m
- Accessing the Content of a Super Class from an Extending Class 2m
- Overriding a Method and Using Polymorphism 4m
- Getting to Know the Methods from the Object Class 2m
- Live Demo: Seeing Overriding in Action 4m
- Creating Abstract Classes with Abstract Methods 3m
- Live Demo: Seeing Abstract Classes and Static Methods in Action 5m
- Preventing Extension and Overriding with the Final Keyword 3m
- Module Wrap Up 2m
- Introducing the Module and Its Agenda 1m
- Creating Interfaces with Methods and Constants 3m
- Implementing Interfaces with Classes and Lambda Expressions 2m
- Defining the Type System with Object Type and Primitive Type 3m
- Defining the Type and the Implementation of a Variable 3m
- Converting Integer and Floating Point Primitive Types 4m
- Live Demo: Seeing Primitive Types Conversion in Action 5m
- Live Demo: Casting Variables from One Object Type to Another 4m
- Module Wrap Up 2m
- Introducing the Module and Its Agenda 1m
- Creating or Generating a Constructor in a Class 2m
- Calling a Constructor from a Constructor 3m
- Live Demo: Setting a Final Variable through a Constructor 3m
- Live Demo: Calling a Constructor from Another Constructor 2m
- Live Demo: Calling a Super Constructor from a Constructor 3m
- Course Wrap up, One Last Bit of Advice, Thanks, and Useful Links 5m