explain the concept of inheritance with an example?

Answer Posted / ackrao

Deriving the properties of one class in to another class is called as inheritance.

Existing class is base class and new class is derived class.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bits is a word?

575


How can you say java is object oriented?

597


What is the disadvantage of synchronization?

569


What are the differences between stringbuffer and stringbuilder?

547


Is the milky way in a void?

545






What is null statement?

539


What does n mean in java?

510


Why singleton pattern is better than creating singleton class with static instance?

544


What is the order of arraylist in java?

615


Is java good for beginners?

583


How do weakhashmap works?

595


What is oops in java?

575


What is %d in printf?

534


What is the use of using enum to declare a constant?

562


What are locale settings?

556