We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
OOP lesson confusions (Read 1737 times)
OOP lesson confusions
May 16th, 2009, 10:55am
 
In the lesson for object oriented programming, I was thrown off by the disparity between the functions listed in the "Writing the Cookie Cutter" and "Using an Object: The Details". In the first section, 'display()' and 'drive()' are listed. Then in the second, when introducing dot syntax, 'display()' and 'draw()' are used.

I used both pairs in my code: one for the functions in my Car class, and another in my 'void draw()' section. This, of course, didn't work. I caught the error after just a little scrambling, but I expect this lesson would be a bit easier if the functions matched up between sections.
Re: OOP lesson confusions
Reply #1 - Oct 28th, 2009, 6:37pm
 
The tutorial has been corrected.  There were unfortunately some inconsistencies in the text.  Let me know if you have any further questions!
Page Index Toggle Pages: 1