You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declar

Q

You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces?

✍: Guest

A

Sometimes. But your class may be a descendent of another class and in this case the interface is your only option.

2013-04-14, 1929👍, 0💬