What is difference between Constant Object and Constant variable

Showing Answers 1 - 2 of 2 Answers

jay

  • May 16th, 2007
 

Constant variables are the variables whose value cannot be changed through out the programme but if any object is constant, value of any of the data members (const or non const) of that object cannot be changed through out the programme. Constant object can invoke only constant function.

swatichari

  • Sep 30th, 2010
 

Constant Object is a variable of user-defined class which do not invode non-const member function.
Constant variable sustains a value constant of built-in? data type.

  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