Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.80K
~364 People Reached
Favorite Forums
Favorite Tags
java x 1

1 Posted Topic

Member Avatar for kukuruku

[QUOTE=kukuruku;1503533]Hi ,I have super class vehicle,truck extends vehicle,and I created array in test class full with objects from vehicle and truck,how can I call method from vehicle,is this the way (truck)object1[1].getMethod()[/QUOTE] If you want to use the method from the vehicle class then cast the object as a vehicle: ((vehicle)object1[1]).getMethod(); …

Member Avatar for jwenting
0
364

The End.