hi Ameeth,

first there is a class StudentRecord you can create it or use the one
created in the example(MyStudentRecordExampleProject)but with some
modifications
                      1- remove the studentCount static variable

second create a class Student which contains
                      1- instance variable from StudentRecord & name
it studentRecord
                      2- add the static variable studentCount to hold
number of students
                      3- it has instance variable of type Integer
called studentId
third create the Main class which contains the main method

hope it is clear now,

A.S.El-Dalatony


On 19 يناير, 21:57, [email protected] wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to