When use abstract class and when interface

  • Thread starter Thread starter Pratap09
  • Start date Start date
P

Pratap09

Guest
Hi All,


Each below way has pros and cons. Please tell me what makes you choose way 1 and what makes you choose way 2?


Way 1:

Interface IOperation
{
void GetData();
}

Way 2:

public abstract class IOperation
{
void abstract GetData();
}

Thanks in advance..

Continue reading...
 
Back
Top