I think that set_nume
is a member function of the class that sets data member nume
of the class (of an object of the class) to the value of local variable nume
(that is entered by the user) passed as an argument of the function. Maybe this member function does some checks of the validaty of nume. For example the function could convert the first letter of nume to upper case and all other letters to lower case and so on. You should look through the function that to see what it does (it can simply set data member nume
to argument nume
like this->nume = nume). Usually such member functions are called as setters. They have the public access control and allow to set private data members of a class.
0
solved What is the purpose of set here? [closed]