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
Give few difference between constructor and method?
What is the reason behind using constructors and destructors?
Which class is the superclass for every class in java programming?
What are the major drawbacks of external iteration?
What is a function in java?
Can we instantiate interface in java?
What lambda means?
What is the generic class?
Can we declare register variable as global?
Which command from the jdk compiles a java program?
Which keyword specify that a variable is effectively final ?
What is a prefix function.write down a code to compute prefix function.
Can a private method of a superclass be declared within a subclass?
Is string is a class in java?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain