I'm stuck on how to get started on this part of my assignment. These are my instructions.
The next class that you need to create will be what I call a Virtual Object. It is an object that we are creating so that we can store data in a concise and thoughtful manner. The only thing we want to do here is store data for easy access and referencing from other classes.
Class Name: Student
Default Constructor – Should do nothing
Overridden Constructor – Should create a student with a name and all 10 grades
Global Variables:
strStudentName
dblAssignmentOne
dblAssignmentTwo
dblAssignmentThree
dblAssignmentFour
dblAssignmentFive
dblAssignmentSix
dblAssignmentSeven
dblAssignmentEight
dblAssignmentNine
dblAssignmentTen
Methods: Each global variable should have an accessor (getter) and a mutator (setter).
I posted a sample peice. Is this what it is asking for? or am I way off?
public class student{ public String getStudentName(String strStudentName){ return strStudentName; } pubic String setStudentName(String strStudentName){ this.strStudentName = strStudentName; } public String getdblAssignmentOne(double dblAssignmentOne){ return dblAssignmentOne; } pubic String setdblAssignmentOne(double dblAssignmentOne){ this.dblAssignmentOne = dblAssignmentOne; }