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 Would Be Life Cycle Of A Fresher After Campus In An IT Company?
1. Basic Technical Training: Since freshers are not subject matter experts so gone through 3 - 6 months basic technical training within Organization. 2. Technical Assessment: HR sends freshers to various...

Create Immutable Class
Snippet of an Immutable Class: package com.stringhr; /*Declare the class as 'final'. This would prevent any other class from extending it and hence from overriding any method from it which could modify...

Java Interview Questions & Answers
Java Interview Questions have been designed especially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Java Programming Language. As per my...

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

Priority in TestNG
public class Priority { @Test (priority=1)public void login() {System.out.println("login");} @Testpublic void email1() {System.out.println("email1");} @Test (priority=-2)public void email2() {System.out.println("email2");} //I...
S

Sarthak C.

0 0
0
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