Question: Implement in C++ Write the implementation for the composition relationship described in the UML diagram below Student -id:int -firstName : string -lastName : string -enrolDate
Implement in C++

Write the implementation for the composition relationship described in the UML diagram below Student -id:int -firstName : string -lastName : string -enrolDate : Date *getid): int *setld(id:int) : void getFirstName(): string *setFirstName(firstName : string): void +getLastName(): string *setLastName(lastName : string): void +getEnrolDate(): Date *setEnrolDate(enrolDate : Date): void Student(id: int, firstName : string, lastName : string, enrolDate : Date) +displayO:void Date -day: int -month : int -year: int +getDay(): int *setDay(day:int) : void getMonth(): int -setMonth(month : int): void getYear(); int setYearlyear: int) : void +Date(day:int, month : int, year: int) +display(): void For example: Test Result Student student(1, "Roger", "Hall", Date(28, 8, 2019)); ID Number: 1 student.display(); First Name: Roger Last Name: Hall Enrolled: 28/8/20
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
