The class clinic described in the question has two data members: an integer variable named patientrecnum and a string variable named patientname. It also has two member functions: a void function named setdetails() that takes two arguments (an integer num and a string name) and sets the values of the patientrecnum and patientname variables, and a function named getdetails() that returns a clinic object.
Therefore, the following statement is true:
The class clinic has two data members, an integer named patientrecnum and a string named patientname, and two member functions named setdetails() and getdetails().