For example if i use this code
private StudentRecord studentRecord= new StudentRecord();
it works fine.
but with this line
private StudentRecord studentRecord;
it doesnt
What is the difference between this 2 line of code? which is the correct
one??
On Wed, Feb 18, 2009 at 3:38 PM,
but do i have to built another method to access to the instance variable on
StudentRecord...
for example when i want to the set the name i have to built a method
like this in Student.java
public void setStudentName(String name){
studentRecord.setName(name);
}
or i have to change th
i have problem with my english do i have to add the class
StudentRecord.java too from the project MyStudentRecordExampleProject to my
project?
for example i have my main class, the student.class and the
StudentRecord.class in my project thats the first point
the second point i has declar
Hi Jon,
I think it means that you have to create a class, the Student class, and
this class needs to have an attribute whose type of data is StudentRecord.
The name of this attribute is "studentRecord". I hope to have solved your
question.
Just to give you an idea of what he means, I reported a
Hi Jon,
Let me know if I misunderstand your question!
public class Student{
private StudentRecord studentRecord;
public Student(){
}
/*some methods*/
}
Thanks,
ovantin
_
From: javaprogrammingwithpassion@googlegroups.com
[mailto:javaprogrammingwithpass...@googlegroup