Monday, September 4, 2023

Difference between abstract class and interface

 

Difference between abstract class and interface

Abstract class and interface both are used to achieve abstraction where we can declare the abstract methods. Abstract class and

Interface both cannot be instantiated. But there are many differences between abstract class and interface that are given below.


Simply, abstract class achieves partial abstraction (0 to 100%) whereas interface achieves fully abstraction (100%)







1 comment:

Machine Learning Course Assignments 2024(Dec)

 Machine Learning Course Assignments 2024 1)   Explain the concept of "generalization" in machine learning. Why is it a central go...