whats is inheritance?

Answer Posted / raja

Inheritence is the process of creating a new class from
an existing class. The new class may access the all the
data members in the parent class. The new class is called
sub class. The existing class is called super class or base
class..

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain inner classes ?

645


What is an interoperable application in java ?

581


What is ‘is-a ‘ relationship in java?

586


What are the advantages of passing this into a method instead of the current class object itself?

1169


What does void * mean?

529






How can we create a synchronized collection from given collection?

577


What is a ternary operator in java?

530


Explain some best practices you would apply while using collection in java?

567


Explain what access modifiers can be used for variables?

587


Can we define static methods inside interface?

519


How many bytes is double?

545


Are arrays dynamic in java?

530


Why java is considered dynamic?

748


Define how does a try statement determine which catch clause should be used to handle an exception?

580


What is the difference between hashmap and hashtable in java?

553