//Get Matt to tell you wtf he wants for lunch
food Lunch = new food();
boy Matt = new boy();
girl Emily = new girl();
while( 1 ){
if( Matt.getFoodPreference() != NULL )
{ Lunch = Matt.getFoodPreference();
break;
}
}
// Because Matt is a gentleman, Emily eats first
Emily.eat(Lunch);
Matt.eat(Lunch);
3 Comments:
You have a syntax error where you initialized the Lunch object.
noob.
Give me a break, I'd been coding in non-case-sensitive VB all morning.
I don't wanna look soft in front of the nerds!
Fine, I'll let it go just this once.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home