‎2023 Jan 12 11:32 AM
Interface satisfies which OOPS concepts? A.) Polymorphism, B.) Inheritance, C.) Encapsulation. D.) Abstraction.
I studied Polymorphism & Inheritance will be answer. Anyone can tell me the exact answer what it is?
‎2023 Jan 19 8:59 AM
It is polymorphism. An interface can be implemented in different classes and in each class its methods can be different allowing it to have different forms.
‎2023 Jan 19 9:04 AM
‎2023 Jan 19 9:49 AM
In theory, yes. But I have always been conflicted about this. I feel that interfaces do not promote the concept of abstraction by themselves. Cause the argument that is used for interfaces for abstraction could be used for any method in general. Any method implemented promotes the concept of abstraction as the calling program does not have to be concerned about how it is implemented but just the calling parameters.
‎2023 Jan 19 9:58 AM
But without Interface you will not be able to create a Factory Class, so you will have a dependency
(this is not totally true, but, without it will be ugly)