Hi ,
It is an instance of another class being created rather than a class
within a class . Its object association that we have here .
The Java programming language allows you to define a class within
another class. Such a class is called a nested class and is
illustrated here:
class OuterClass {
...
class NestedClass {
...
}
}
http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html
Thanks,
Ashok A V
On Sun, Aug 9, 2009 at 12:16 AM, Michael Dabydeen<[email protected]> wrote:
>
> Its sort of a nested class
>
>
> public class Student{
>
> /* This is the StudentRecord Class created outside of this class*/
>
> StudentRecord newStudent = new StudentRecord();
>
> ..........
>
> }
>
> On 8/8/09, Louis (comcast) <[email protected]> wrote:
>> LAB-1014 Question: the homework states:
>> "The Student class has StudentRecord class as an instance variable. Name it
>> as studentRecord"
>> Can you please explain this? Do you want a "nested class"?
>>
>> Thanks,
>>
>> >
>>
>
> >
>
--
Victory belongs to the most persevering.
- Napoleon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---