Sunday, 22 February 2015

What are the differences between interfaces, abstract classes, classes, and instances?



  • Interfaces are essentially a list of methods that implementations must possess, but have no code or member variables


  • Abstract classes cannot be instantiated, but can contain variables, implemented methods, and unimplemented methods
  • Classes contain variables and implemented methods only, and can be instantiated
  • Instances (or objects) are specific examples of a particular class.
  • No comments:

    Post a Comment