B
blueblueblue2005
Hi, what is the different between the following two ways to use const
in a function definition:
1. const Array &operator=(const Array &);
2. int getSize() const;
keyword const to the left of return type and to the right of the
parameter list, what is the different here? I know for the 2nd case,
the function can not modify the object's data member.
Thanks a lot
-Holly
in a function definition:
1. const Array &operator=(const Array &);
2. int getSize() const;
keyword const to the left of return type and to the right of the
parameter list, what is the different here? I know for the 2nd case,
the function can not modify the object's data member.
Thanks a lot
-Holly