when to use abstract class and when to use interface?
Answer Posted / jc
If you want give different implementation(behaviour) to
methods which are available in the interface go for
interface.
If you want give different implementation to particular
methods(that is only some methods which are not similar to
subclass)go for abstract class.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is the program development process?
Can we override the private methods?
Should a main method be compulsorily declared in all java classes?
what are the methods in object?
What does the append?
Which is easier .net or java?
Is jdk required on each machine to run a java program?
What is identifier give example?
Why java is object oriented?
Can extern variables be initialized?
How do you check if a string contains only numeric digits?
What is int short for?
What is arrays fill in java?
Can singleton class be serialized?
How do you access command-line arguments within the code?