On Feb 16, 7:56 am, Asif <[email protected]> wrote:
> 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.
In MyStudentRecordExampleProject, this is the
StudentRecordExample.java file which has the main. You should
reproduce the same structure in your project.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---