1
Reply

When to use Abstract class & Interface In a project.Where we use encapsulation in a project

rajani 0

rajani 0

Apr 24, 2012
2.5k
0

    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

    Sonia K
    August 13, 2012
    0