Possible Duplicate:
Why should the copy constructor accept its parameter by reference in C++?
I have the following code:
class Student {
private:
int no;
char name[14];
public:
void display() const;
Student(const Student& student); // Line 1
};
I have read that class is a reference type, so why in Line 1 of the above code declared as alias.
Is Line 1
equivalent to: Student(const Student student);
?