When we use interface and when we use abstract class
-
When we use interface and when we use abstract class. I need good and genuine answer. I know the basic differences so please avoid the stupid answer.
-
When we use interface and when we use abstract class. I need good and genuine answer. I know the basic differences so please avoid the stupid answer.
rachitagarwal2828 wrote:
When we use interface and when we use abstract class.
Hi, The easy way to explain this is if you need to have functionality in this structure the abstract class with abstract methods is common. Or if no functionality is needed then interface would be best. Note this a generality. Hope this helps
Frazzle the name say's it all
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. John F. Woods