What is the deference between abstract class and interface ??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What is the deference between abstract class and interface ???

19th May 2020, 2:49 AM
Ahmed Muhammed
Ahmed Muhammed - avatar
1 Answer
+ 2
Abstract class: is a restricted class that cannot be used to create objects (to access it, it must be inherited from another class). https://www.w3schools.com/cs/cs_abstract.asp An interface is a completely "abstract class", which can only contain abstract methods and properties (*with empty bodies*) https://www.w3schools.com/cs/cs_interface.asp
20th May 2020, 2:54 AM
Zhengrong Yan
Zhengrong Yan - avatar