The usage of the term inherit can be confused with the Java inherit so you
should use the word contain, or has. The student has a record and not the
student is a record. When you will learn about inherit you will understand
the difference better.

BR,
Yaron Jackoby

On Fri, Jul 3, 2009 at 4:40 AM, JKid314159 <[email protected]> wrote:

>
> In the Student class I set up the constructor as follows:
>
> /**Creates a new instance of Student*/
>    public Student(){
>       this.studentRecord = new StudentRecord();
>    }//Student constructor
>
> This means when I instantiate a new Student object that it will
> inherit all the characteristics and behaviors (fields and methods) of
> the StudentRecord class?
>
> My program is working but I just wanted to make sure what I was
> thinking is correct.
> Best,
> Alex
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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