On May 28, 6:51 pm, [email protected] wrote:
> I have three class as following
>
> - person class
> - employee class
> - manager class
>
> employee class and manager class extend the class person
> I want to create a person array with 3 elements
> element 1 is person
> element 2 is employee
> element 3 is manager
You cannot do this directly in Java as an Array in Java is of a
defined type, unless you declare an Array of Object or of Person,
which is relatively vague.
You may use the same technik as in the homework of Generics lesson.
>
> how to create 3 elements ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---