Advantages of Inheritance in java.

Answer Posted / jadhavpnilesh

I read all the answers and same I explained in my recent
interview. She asked me instead of inheriting the class i
will create object of class and call methods of that class
is it not reuse of code ? What she was expecting exactly,
can anyone help ?

Is This Answer Correct ?    16 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can java hashmap have duplicate keys?

699


What is a Hash Table? What are the advantages of using a hash table?

843


What is an interface in java? Explain

807


Is a class an object?

776


What does s mean in regex?

741


Do I need java on my pc?

725


What package is math in java?

731


Why are pointers not secure?

773


Explain the selection sort algorithm?

847


What are the various access specifiers for java classes?

762


What happens to the Exception object after handling an exception?

2071


What is t type java?

807


What java ide should I use?

753


What is main function purpose?

740


What does a za z0 9 mean?

752