UrbanPro
true

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Understanding concept of Inheritance in Java

Uday CH
28/12/2016 0 0

Inheritance:

Acquiring a properties and methods from Parent class to Child class.

For example, In some cases we can hear from any one of your relative or your friends will say like that "You are bahaving like your Father" or "You looks like your Father/Mother".we can find  Means you are getting some default behaviour from your parents and that you extending and improving your features.

This is called Inheritance.

If you observe in the society, we can find four different types of Parents.

Type 1: I can give you every thing whatever I've.

Type 2: I can give you something and you can earn something by your own

Type 3: I have everything to give but I don't have children to give the things what I have

Type 4: I don't have anything to give, you only need to get the things of your own

Here I refers to "PARENT" and You refers to "CHILD"

Type 1 can achive by using Simple Inheritance

Type 2 can achive by using "abstract" modifier

Type 3 can achive by using "final" modifier

Type 4 can achive by using "Interfaces"

If you can understand these scenarios you can easily understand how the Inheritance and Interfaces work

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

What is a Programming Language
What is a Language? Language is a communication system of human. What is a programming Language? A programming Language is a formal constructed language design to communicate...

Tips of learning Java Language/Other Programming Languages
1.You should know the basic concept: If we talk about programming languages so basic concept are same in all the high level languages. So you should know the basic concept firstly then you can easily understand...
I

ICreative Solution

0 0
0

Importance of Constructor's Visibility.
While developing program or implementing Singleton pattern we have learnt to mention constructor as private and known reason is -> to blocked its direct call from outside of class. But did we think...
M

Java : Command Line Arguments
The parameters which are provided to the program at the command line. Eg:d:\>java a 10 20 30 Here,“java” is an interpreter, “a” is filename,10,20,30 are arguments passed to...
S

Svg Reddy

0 0
0

Class and Objects in Java
Class is a template or a blueprint which is used to describe an object. On other hand Object is a reference of a class which follows all the stuff written inside the class. How about taking the whole tour in the following video
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more