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 native code?
Explain Basics of OOP Language in java
How do you define a singleton class?
Which one of the following suits the description of a string better: derived or primitive?
What is static data type in java?
What is the console in java?
Is static variable stored in heap?
What is this keyword in java?
What is the purpose of static methods and static variables?
What are the differences between path and classpath variables?
What is keyset in java?
How do you implement polymorphism in our day to day life?
Can we pass null as argument in java?
Why do we need singleton?
How do you achieve polymorphism in java?