A Class is a blueprint / template of an object. A class contains all the code that relates to its object. A class is a user defined datatype which contains Methods, Variables and Properties.
Consider example of a cat (class), it will consist of color, breed .... etc (characteristics) and the ability to jump, run ..... etc (behaviors)
No comments:
Post a Comment