Question: Implement as C++ code Student -id:int -firstName : string -lastName: string |-enrolDate : Date getid): int +setld(id:int) : void +getFirstName(): string +setFirstName(firstName : string): void

Implement as C++ code

Implement as C++ code Student -id:int -firstName : string -lastName: string |-enrolDate

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, en rolDate : Date) +display() : void Date -day: int -month : int |-year: int getDay(): int *setDay (day: int) : void get Month(): int +setMonth(month : int) : void +getYear(): int *setYeart year: int) : void +Dateday:int, month : int, year: int) +display:void Given the composition relationship described in the UML diagram above has been implemented; complete the following: Implement a method named 'saveRecord' that accepts as argument a Student object and stores the details of the object to a file named 'students.dat'. Tabs should be used as the delimiter for the fields in the record written to the file. For example: Test Result Student student(1, "Roger", "Hall", Date ( 28, 8, 2019)); ID Number: 1 if(saveRecord(student)) { First Name: Roge student.display(); Last Name: Hall } Enrolled: 28/8/2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!