What is the difference between user defined object and Standard object?

Showing Answers 1 - 2 of 2 Answers

bornToLose

  • Sep 22nd, 2007
 

Standard object is that which is defined in header file which is develoved by C++ developer and contain in library of C++. It remain fix we cant make different use. It is developed for specific purpose.


User define Object are those that is define by the user according to  its need and perform different operaqtion. Ex- Class. It is robustic feature of OOPS which make it different from procedure language.

The difference pointed by the previous poster is very superficial. A "standard" object may have been defined by a "user", e.g., creator of a library.

In C++ there is no discrimination against user-defined objects. Anything which works for "original" objects also works for "user-defined" objects.

Of course, the user can shoot himself in the foot by improperly defining the class, such as forgetting to deallocate memory in the destructor which was allocated using new in the constructor, etc., but that's user's responsibility, to not make mistakes in defining one's objects.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions