Core java tutorial for beginners
A tutorial blog which explains different core concepts related to Java along with programming examples
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.
Java Programming » Inheritance » Page 2

Constructors in Inheritance

Suryateja Pericherla Categories: Inheritance. No Comments on Constructors in Inheritance

In this article we will look at the sequence in which constructors in inheritance are executed i.e., is the base class constructor invoked first or the derived class constructor is invoked first.   Consider two classes participating in simple inheritance. Let A be the super class and B be the sub class. Now, which constructor […]

Read the rest of this entry »

super Keyword in Java

Suryateja Pericherla Categories: Inheritance. No Comments on super Keyword in Java

In this article we will look at super keyword. The super keyword is useful only in the context of inheritance. Let’s see what are the uses of this super keyword in Java.   Uses of super keyword   Following are the uses of super keyword: To refer the immediate super class constructor To refer the immediate super class members […]

Read the rest of this entry »

Types of Inheritance

Suryateja Pericherla Categories: Inheritance. No Comments on Types of Inheritance

In this article we will look at different types of inheritance and what types of inheritance are supported in Java.   There are five types of inheritance based on how many base classes and derived classes are there in the inheritance relationship. They are as follows: Simple inheritance Multi-level inheritance Multiple inheritance Hierarchical inheritance Hybrid […]

Read the rest of this entry »

Java Inheritance Concepts

Suryateja Pericherla Categories: Inheritance. 1 Comment on Java Inheritance Concepts

In this article we will look at what is inheritance? How inheritance is implemented in Java? How to work with inheritance in Java programs and various other Java inheritance related concepts.   Inheritance Definition   As already seen here: object orientation concepts, inheritance is one of the four corner stones of object oriented programming. Inheritance […]

Read the rest of this entry »
Facebook
Twitter
Pinterest
Youtube
Instagram