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

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