when to use abstract class and when to use interface?
Answer Posted / brijendra kumar soni(xavient)
1-By using Interface we can achieve the Multiple
inheritence while by using abstract class we can not
achieve.
2-Abstract Class extended by a class only while Interface
implmented by a class and extended to one or more
interfaces.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is assembly language?
What does the “static” keyword mean?
What is the preferred size of a component in java programming?
What is the same as procedures?
What is a void in java?
What is the difference between static binding and dynamic binding?
What is lifetime variable?
What does jenkins do?
Explain what do you mean by functional overloading in java?
How would overload a function based on return type?
Differentiate between run time error and syntax error.
Explain java thread life cycle.
Is java still relevant?
Which one of the following suits the description of a string better: derived or primitive?
Why are constructors used?