Showing posts with label Difference between interface and abstract class. Show all posts
Showing posts with label Difference between interface and abstract class. Show all posts

Difference between interface and abstract class / Chapter 14 / OOPs Concept

Difference between interface and abstract class

Difference between interface and abstract class



  1. In the interface, if we don't know about implementation and just we have requirement specification then we should go for an interfaceBut In the abstract class, If we are talking about partial implementation but not complete then we should go for abstract class.

  2. In the interface, every method is always public and abstract whether we are declaring or not. But  In the abstract class, every method need not be public and abstract. we can take concrete method also.

Flipkart End Of Season Sale






© Copyright 2017 Javabychetan.blogspot.com