You need to type cast computerArray[i] to specific class
like : Laptopn lap = (Laptop) computerArray[i];
and then use
lap.getSize();
Similarly you can type cast for Desktop
:-bd
Type: Posts; User: DanBrown
You need to type cast computerArray[i] to specific class
like : Laptopn lap = (Laptop) computerArray[i];
and then use
lap.getSize();
Similarly you can type cast for Desktop
:-bd