What is the difference between an abstract class and an interface in OOPs?
A. An abstract class can have both concrete and abstract methods, while an interface can only have abstract methods
B. An interface can have both concrete and abstract methods, while an abstract class can only have abstract methods
C. An abstract class cannot be instantiated, while an interface can be instantiated
D. An interface cannot be extended, while an abstract class can be extended
Answer:A
What is the difference between an abstract class and an interface in OOPs?
A. An abstract class can have both concrete and abstract methods, while an interface can only have abstract methods B. An interface can have both concrete and abstract methods, while an abstract class can only have abstract methods C. An abstract class cannot be instantiated, while an interface can be instantiated D. An interface cannot be extended, while an abstract class can be extended