| |
GeekInterview.com > Tech FAQs > OOPS
| Print | |
Question: Classes and Objects
Answer: What is the relationship Between Classes and Objects? |
| July 07, 2009 19:44:13 |
#2 |
| PNVRKPrasad |
Member Since: July 2009 Total Comments: 4 |
RE: Classes and Objects |
Class: Programmer puts the definition of code into a class which we can treat as a plastic mould. Class is defined at design time. A class gives the programmatic logic. Object: Plastic products are created using a mould; objects are instantiated at run time by using the Class definition. An object is a copy of a class which will be filled with data at run time. An object can be created for handling each user request or for a user or there can be a singleton class which will have only one instance (object) that serves all the requests. |
| |
Back To Question | |