This project is read-only.

Class method array

Oct 14, 2010 at 3:54 AM

i need a way to create a single dimentional array that is capable of holding either the name of a class so it can be called like classes[0].INIT(); it will have to hold many different classes i know this is an odd need but im creating an os that can be easily modified to contain more programs like an ipod

Oct 14, 2010 at 5:44 AM

ok so i got it working by having all the classes inheriting to one class that the array made of so its

program[] classes = { new class1(), new class2}; and class1 and 2 inherit from program

so all my app classes have a method called init but when i try to use classes[1].init(); it doesnt work and gives me and error.

sorry for being so vuage with y code but i cant post the parts im using because a certan developer has taken my code once and i dont wan it to happen again

Oct 15, 2010 at 8:54 PM

Marc XD

Oct 15, 2010 at 11:24 PM

yupp lol

Oct 21, 2010 at 1:40 AM

lol guys i still need help with post