Hi guys,
I am having difficulty in understanding the homework. As I understand, if I
create new project called MyOwnProject. It has got two classes Student and
StudentRecord. StudentRecord class seems straightforward. Student class has an
instance variable called studentRecord of type StudentRecord. I have understood
upto this point. What i didn't understand is following in blue
"You can use the StudentRecord class from the
MyStudentRecordExampleProject above or you can create a new one - the
only requirement is that it has to have at least one instance variable
of its own."
The Student class has
studentId instance
variable whose type is Integer (wrapper class or primitive?)type.
I don't understand which class has main. As I understand it cannot be in
StudentRecord . Are we supposed to create 3 instance variable of Student class,
if main is in Student.
Also if studentCount is moved from StudentRecord to Student class, how we
should use increaseStudentCount() method to increase the student count.
Please help!
Thanks
Asif
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---