Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++: 4. (20 marks) We want to create a class called Student, which represents the students of the university. A student is defined by the
C++:
4. (20 marks) We want to create a class called Student, which represents the students of the university. A student is defined by the following attributes: id number (int), first name (string), last name (string), date of birth (string), address (string), and telephone (area code (int) and 7-digit telephone number(string)). The member functions of the class Student must perform the following operations: Return the id number. Return the first name of the student. Modify the first name of the student. Return the last name of the student Modify the last name of the student . Return the full name, i.e, first name and last name. Return the date of birth Modify the date of birth. Return the age of the student. Return the address of the student. Modify the address of the student. Return the telephone number Modify the telephone number. . . Return true if two given students have the same last name. Return false otherwise. . Return true if two given students are roommates, i.e., they live in the same addressStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started