26 Nov 2006 at 20:32 #1 Eriedor Eriedor Associate Joined 1 Feb 2006 Posts 1,868 Location Reading Is it possible to add my own method to say the Array system class? If so how would i go about doing it? can't seem to find anything explaining on t'internet.
Is it possible to add my own method to say the Array system class? If so how would i go about doing it? can't seem to find anything explaining on t'internet.
26 Nov 2006 at 21:21 #2 toString toString Soldato Joined 18 Oct 2002 Posts 9,044 Location London You can do it by creating a new class which 'extends' the Array Class. Code: class MyArrayClass: Array { public aNewMethod() { blahh; } } That way the new class will contain all of the Array methods, plus any new ones you make.
You can do it by creating a new class which 'extends' the Array Class. Code: class MyArrayClass: Array { public aNewMethod() { blahh; } } That way the new class will contain all of the Array methods, plus any new ones you make.