On Feb 26, 10:23 pm, Jose Miguel Rincon Benitez
<[email protected]> wrote:

> 1. do we have to create three classes (Student, StudentRecord, Main)
> based on the MyStudentRecordExampleProject instead of two(Student,
> Main...for example)??
Yes.

>
> 2. does it mean that i can use all of the instances from StudentRecord
> class into Student class, so i can eliminate the StudentRecord class??
No. Both classes should exist.

>
> 3. when i create my studentID intance variable as Integer, do we have
> to put his intance in the Student class or in the main class??
It is part of Student class.
>
> 4. is it necesary (obligatory) to declare studentID as public "static"
> Integer??
No, it should be private. It is a field of Student class.

>
> 5. after setting the student's ID (which are practically personal), i
> get the following logical error:
That probably comes from the fact you declare it public static, hence
it is the same value for all instances of the class.

>
> for futhermore,  i would aprettiate any help for solving this
> homework. and help my try to understand where are my flaws in this
> homerwork??
You probably get a better understanding if you start from the example,
and then try to change it as stated in the homework. Step by step
until you get the right result.
--~--~---------~--~----~------------~-------~--~----~
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