|
-
November 17th, 2009, 07:37 AM
#1
Why Compiler modifies constructor to const method?
Can any one help me in understanding why compiler implicitly coverts the constructors of any class to const method.
class motor
{
motor()
{
}
...
...
};
compiler modifes the constructor motor() to,
class motor
{
motor() CONST
{
}
}
Kindly reply what is the advantage compiler provides to user by doing so.
Thanks in advance.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|