J josthebomb Member Apr 4, 2004 41 0 0 Oct 4, 2004 #1 Are variables only allowed to be primitive types? thanks
kamper Diamond Member Mar 18, 2003 5,513 0 0 Oct 4, 2004 #2 Heh heh, that would kind of defeat the purpose of complex types wouldn't it How else would you use them?
Heh heh, that would kind of defeat the purpose of complex types wouldn't it How else would you use them?
AyashiKaibutsu Diamond Member Jan 24, 2004 9,306 4 81 Oct 4, 2004 #3 Well you can have instances of objects which is pretty much a variable non-primitive type.
A AFB Lifer Jan 10, 2004 10,718 3 0 Oct 4, 2004 #4 Originally posted by: kamper Heh heh, that would kind of defeat the purpose of complex types wouldn't it How else would you use them? Click to expand... Simple, lots and lots of brackets. (new Dog()).eat(new Cat()); Except your objects could only do one thing before they die, so that would suck
Originally posted by: kamper Heh heh, that would kind of defeat the purpose of complex types wouldn't it How else would you use them? Click to expand... Simple, lots and lots of brackets. (new Dog()).eat(new Cat()); Except your objects could only do one thing before they die, so that would suck