Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create a Java class definition to represent a student. The student should have at least the following attributes:
- Student Id
- First Name
- Last Name
- Gender
- Date of birth
- GPA
- Make sure to use appropriate data types for the attributes.
- The student's attributes should be accessible to subclasses, but not accessible to direct assignment. Provide getters and setters for all attributes. Also provide a no-argument constructor.
- You may use Eclipse (or other Java editor) to create the class definition, then copy and paste the text here.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement