Write the KeanStudent class. The UML diagram of the class is represented below: KeanStudent - fullName: String - keanID: int -keanEmailAddress: String cellPhoneNumber: String + numberOfStudent: int + KeanStudent() + KeanStudent(fullName: String, keanID: int, keanEmailAddress: String, cellPhoneNumber: String) +getFullName(): String +setFullName(newFullName: String): void +getKeanIDO): int +getKeanEmailAddress(): String +getCellPhoneNumber(): String + setCellPhoneNumber(newCellPhoneNumber: String): void +toString(): String 1. Implement the KeanStudent class strictly according to its UML one-to-one (do not include anything extra, do not miss any data fields or methods) 2. Implement a StudentTest class to test the class KeanStudent you just created. • Create two KeanStudent objects using a no-args constructor and one from the constructor with all fields. o Print the contents of both objects. 。 Print numberOfStudent. 3. Add comments to your program (mark where data fields, constructors, getters, setters and toString() are) Example output: KeanStudent [fullName=null, keanID=0, keanEmailAddress=null, cellPhoneNumber=null] KeanStudent [fullName=Jack Jone, keanID=10000, keanEmailAddress=jjone@kean.edu, cellPhonel 2
Write the KeanStudent class. The UML diagram of the class is represented below: KeanStudent - fullName: String - keanID: int -keanEmailAddress: String cellPhoneNumber: String + numberOfStudent: int + KeanStudent() + KeanStudent(fullName: String, keanID: int, keanEmailAddress: String, cellPhoneNumber: String) +getFullName(): String +setFullName(newFullName: String): void +getKeanIDO): int +getKeanEmailAddress(): String +getCellPhoneNumber(): String + setCellPhoneNumber(newCellPhoneNumber: String): void +toString(): String 1. Implement the KeanStudent class strictly according to its UML one-to-one (do not include anything extra, do not miss any data fields or methods) 2. Implement a StudentTest class to test the class KeanStudent you just created. • Create two KeanStudent objects using a no-args constructor and one from the constructor with all fields. o Print the contents of both objects. 。 Print numberOfStudent. 3. Add comments to your program (mark where data fields, constructors, getters, setters and toString() are) Example output: KeanStudent [fullName=null, keanID=0, keanEmailAddress=null, cellPhoneNumber=null] KeanStudent [fullName=Jack Jone, keanID=10000, keanEmailAddress=jjone@kean.edu, cellPhonel 2
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section12.2: Providing Class Conversion Capabilities
Problem 6E
Related questions
Question
![Write the KeanStudent class. The UML diagram of the class is represented below:
KeanStudent
- fullName: String
- keanID: int
-keanEmailAddress: String
cellPhoneNumber: String
+ numberOfStudent: int
+ KeanStudent()
+ KeanStudent(fullName: String, keanID: int, keanEmailAddress: String, cellPhoneNumber: String)
+getFullName(): String
+setFullName(newFullName: String): void
+getKeanIDO): int
+getKeanEmailAddress(): String
+getCellPhoneNumber(): String
+ setCellPhoneNumber(newCellPhoneNumber: String): void
+toString(): String
1. Implement the KeanStudent class strictly according to its UML one-to-one (do not include anything extra, do not miss any data
fields or methods)
2. Implement a StudentTest class to test the class KeanStudent you just created.
• Create two KeanStudent objects using a no-args constructor and one from the constructor with all fields.
o Print the contents of both objects.
。 Print numberOfStudent.
3. Add comments to your program (mark where data fields, constructors, getters, setters and toString() are)
Example output:
KeanStudent [fullName=null, keanID=0, keanEmailAddress=null, cellPhoneNumber=null]
KeanStudent [fullName=Jack Jone, keanID=10000, keanEmailAddress=jjone@kean.edu, cellPhonel
2](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1f1cff89-d0c3-401a-ba77-d9b5f81fcda4%2F4d95933f-1e88-4d85-9557-3bf2812b8cf1%2F6pt43m_processed.png&w=3840&q=75)
Transcribed Image Text:Write the KeanStudent class. The UML diagram of the class is represented below:
KeanStudent
- fullName: String
- keanID: int
-keanEmailAddress: String
cellPhoneNumber: String
+ numberOfStudent: int
+ KeanStudent()
+ KeanStudent(fullName: String, keanID: int, keanEmailAddress: String, cellPhoneNumber: String)
+getFullName(): String
+setFullName(newFullName: String): void
+getKeanIDO): int
+getKeanEmailAddress(): String
+getCellPhoneNumber(): String
+ setCellPhoneNumber(newCellPhoneNumber: String): void
+toString(): String
1. Implement the KeanStudent class strictly according to its UML one-to-one (do not include anything extra, do not miss any data
fields or methods)
2. Implement a StudentTest class to test the class KeanStudent you just created.
• Create two KeanStudent objects using a no-args constructor and one from the constructor with all fields.
o Print the contents of both objects.
。 Print numberOfStudent.
3. Add comments to your program (mark where data fields, constructors, getters, setters and toString() are)
Example output:
KeanStudent [fullName=null, keanID=0, keanEmailAddress=null, cellPhoneNumber=null]
KeanStudent [fullName=Jack Jone, keanID=10000, keanEmailAddress=jjone@kean.edu, cellPhonel
2
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning