+ 2
an abstract class is a class in which you need to define some methods by yourself. so f.e. You have the class dog and you have the methods bark (), sleep (), wakeup () for sleep and wakeup you wouldn't need a custom code but a lot of dogs bark in a different way so you the class ask's you to make your own bark code. An interface is very similar the only difference is that every method must be redefined
12th Apr 2017, 5:11 AM
Daniel S
Daniel S - avatar