Interviews - C# Corner

rajani 0
When to use Abstract class & Interface In a project.Where we use encapsulation in a project
By rajani 0 in Windows Forms onApr 24 2012
  • Sonia K
    Aug, 2012 13

    If you have logic that will be the same for all the derived classes, it is best to go for a abstract class instead of an interface. You can implement multiple interfaces but only inherit from one class. Encapsulation hides the internal state and behavior of an object

    • 0

Most Popular Companies

Most Popular Job Functions