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

Internet of Things, Social Media Becoming Part of E-Discovery Landscape
The days when e-discovery consisted of handing over copies of e-mails to address Freedom of Information Act (FOIA) requests, compliance regulations or other legal obligations are over. Now, it's just as...

How can everyone prepare to clear any Java interview?
Java interview your java should be much strong then J2EE. core java and Advance java is the basic foundation for Interview. Some of the topic about which you should know before going for a java interview...

Basic Concepts of Web Designing
An introduction to domain names, web servers, and website hosting 1)What is the web? In a nutshell, the web is a whole bunch of interconnected computers talking to one another. The computers (on the...

ClassNotFoundException vs NoClassDefFoundError
ClassNotFoundException NoClassDefFoundError It is an exception and happens due to programmer’s mistake and can be recovered by updating the code. Thrown when an application tries...

2.1. Reverse a singly linked list.
class Node { int data; Node next; Node(int data) { this.data = data; this.next = null; }} public class LinkedList { Node head; public void reverse() { Node prev = null; Node curr = head; Node next =...
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