Pages

Monday, 25 November 2013

When should you use Abstract Class vs Interface while programming?

 Ans: 
When we want that sub class must implement all the methods of base class. In such a situation we will implement the interface. In the other hand when we want only some method of base class in our sub class then use base class as abstract class.

No comments:

Post a Comment

Enter Your Question

Total Pageviews

Blog