Try my app Expense Manager @ google play and amazon store.

Thursday, November 28, 2013

What is difference between class and object?

Class is a blue print or some template and object is a building created from this blue print or template. Class is a more abstract definition of something and object is the real thing that belongs to that class.
For example
Class:

class Bike {
       
    }

Object:


Bike myObject = new Bike();

No comments:

Post a Comment

Follow by Email

Google+ Badge