Constructor is the blueprint to create object .Here person is the constructor from which we can create objects. jane,mark and john are the 3 instances of person constructor.
When single task can be done by multiple groups/family of objects and decision is taken at the runtime.
No comments:
Post a Comment