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

A Tip for the beginners.
The world of programming languages right now is too dense, and too big for any beginner. But at the same time, because of so many options available, it's easier too. You can start with any language that...

JAVA - Object Cloning
JAVA - Object Cloning Is the way of creating the same copy of object without calling the class constructor. It means we can make any class object multiple times without calling its default constructor....

Advance Java
1) Servlet • Basics of Servlet • Servlet Request • Servlet Collaboration • Servlet Config • Servlet Context • Attribute • Session Tracking • Event and Listener •...
A

Java : Compile-time Versus Runtime optimization
While designing and development, one should think in terms of compile-time and run-time.It helps in understanding language basics in a better way.Let's understand this with a question below : What...
S

Java Program Sample Application
/* WAP to print given message on the console using java*/ // Class declaration in java class sample { // Main function public static void main(String args) { // function for printing on the console System.out.println("Hello...
S
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