24 ,25 is correct cuz in implimintation not heder file
39: i did in implimntation function wich getthe id
my question is this is implimntation is uncoreect ,so is that how to write implimntation of teampleat implimntation ?if it is not can you please coreect it for me?
24 ,25 is correct cuz in implimintation not heder file
No. The assignments are backwards as I stated. This has nothing to do with it being the implementation.
n=name;
The above statement assigns the value of name to n. Not the other way around.
Since you have no default constructor, name (which is a member variable) is going to be an empty string. This empty string will be assigned to n which is an argument passed by value. The n goes out of scope when your constructor exists and its value is lost.
39: i did in implimntation function wich getthe id
My point is that line 39 calls the getter, but the returned value of the getter is ignored. If you're going to call a getter and ignore the return value, why call the getter at all?
my question is this is implimntation is uncoreect
Yes, your implementation is incorrect for the reasons I've pointed out.