Tuesday, 17 November 2015

Difference b/w Object and Class

Object means combination of states (variables/fields) and behaviors (methods). It is an instance of class.
Class means template or blue print that describes the states and behaviors of object.
Note: Object exists physically and Class exists logically. Ex: Sweet is a Class and Mysore pak is Object

No comments:

Post a Comment