What is the difference between an Interface and an Abstract class? Ans. An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods. - Study24x7
Social learning Network
10 Nov 2023 10:46 AM study24x7 study24x7

What is the difference between an Interface and an Abstract class? Ans. An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicit...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles