Wednesday, 11 September 2013

hi. i need to create an array of obects, but the referance variables are from multiple classes

hi. i need to create an array of obects, but the referance variables are
from multiple classes

i have these classes:- -product(super class) -tv -mp3 -dvd
now i need to make an array of obects in one class using all of 3
classes(except the super). please hlp.
eg of class variables tv(1000,"samsung",30)----_--(price,brand,size)
mp3(500,"apple",blue,32)-------(price,brand,color) dvd(600,"LG",blue
ray)------(price,brand,type)

No comments:

Post a Comment