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
How do you use compareto method?
What is variable explain?
What do you mean by global variable?
How to handle a web browser resize operation?
What is null object in java?
What is array length?
What are benefits of java?
What is the difference between choice and list?
Explain the concept of proper inheritance?
How do you read and print a string in java?
What is string literal in java?
What are untrusted applets?
How do you start a new line in java?
What does opcode mean?
Why is the type for real numbers called double?