Hi,
Can someone please clarify this homework. I am not clear on the requirements
for this lab.
1. The homework is to either modify MyStudentRecordExampleProject NetBeans
project you've done in Exercise 1 above or create a new project as following.
(You might want to create a new project by copying the
MyStudentRecordExampleProject project. You can name the homework project in
any way you want but here I am going to call it MyOwnProject.)
Create a Student class as following:
The Student class has StudentRecord class as an instance variable. Name it as
studentRecord.
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 type.
Move the studentCount static variable from the StudentRecord class to Student
class.
Rewrite main.java as following
Create 3 instances of Student class and initialize them accordingly - use
whatever initialization values that are appropriate.
Display the information of each student including the student id, name.
Display the studentCount.
I want to know how many classes should be created and what should they be
doing?
Please clarify.
Thanks,
Ameeth
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---