-1

Write a class called Person.java that has instance variables matric number, name, date of birth, and gender. Use appropriate data types for these instance variables. Include constructor and set and get methods for all instance variables. Draw UML diagram for class Person.

Then, create an application class that asks the user to supply the required information for a Person object and then instantiates a Person object.

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Jocamps
0

I'm starting to remember why I stopped visiting the forums.

Good job, you pasted your homework assignment. Why are you sharing it? Have a specific question?

0

Write a class called Person.java that has instance variables matric number, name, date of birth, and gender. Use appropriate data types for these instance variables. Include constructor and set and get methods for all instance variables. Draw UML diagram for class Person.

Then, create an application class that asks the user to supply the required information for a Person object and then instantiates a Person object.

at least make some effort!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.