explain the concept of inheritance with an example?

Answer Posted / shekar

Inheritence is the process by which one object acquires the
properties of another object. by using the extends keyword.

Adv:

It is easier to reuse code

Is This Answer Correct ?    40 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the font and fontmetrics classes in java programming?

743


Will set allow duplicates in java?

753


What is the final keyword denotes?

899


Will the jvm load the package twice at runtime?

866


Why is sizeof not a function?

801


Can a class extends itself in java?

815


Does a class inherit the constructors of its superclass in java programming?

772


What is time complexity algorithm?

821


Name and explain the types of ways which are used to pass arguments in any function in java.

851


Is final static java?

788


Write a program in java to create a doubly linked list containing n nodes.

767


Is object a data type?

776


What is object-oriented paradigm?

869


Give me some null interfaces in java?

830


What are controls and their different types in awt?

872