Questions about interface and abstract class
Hi,
I have a question about interface and abstract class. I'm not sure if the following statements are valid or not.
Interface class is a class that contains only abstract methods. This class is used because another class wants to obtain all the behaviours from it.
Abstract class is a class that contains both non-abstract and abstract methods. This class is used because another class wants to obtain certain behaviours from it.
If the above statements are true, then can't we just use inheritance and override the methods instead?
Thanks