Interface main Use for real time? why i need this?
Interface main Use for real time and opps concepts? Its only have signature. So why in need Interface & apstract class??? Some people say we use these for Large amount of class to handle easily? But why should i need this?
Afzaal Ahmad ZeeshanPosted Mar 20, 2015, 5:20 AM
You do not use it to handle anything, you just create an interface for the developers to use to communicate with the base functions. There is no basic underlying different, it is just that you are not required to always include a body for the function; you can define the body for an interface in the derived class too.
If you're interested, you can read this thread for more on these types; abstract, interface and class.