when to use abstract class and when to use interface?

Answer Posted / devarathnam c,kotagudibanda(po

Hi...
When u want to inherit the properties of base class only
(not other resources) go for Abstract class.
When u want to inherit the properties of base class and
other resources go for Interfaces .

Is This Answer Correct ?    42 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Outline the major features of java.

559


What are actual parameters?

513


How do you write a conditional statement?

509


What is listnode in java?

526


What are some examples of variable costs?

479






What are the methods of object class ?

554


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

825


why not override thread to make a runnable? : Java thread

547


What is the diffrence between inner class and nested class?

550


What is stack example?

537


Can a constructor be made final?

651


What is an interface in java?

550


What are the important features of Java 11 release?

570


What are the disadvantages of using inner classes?

542


Why does my function print none?

508