From last time…
We talked about classes and objects and built a
Star and StarManager class!
! // 1. name
// 2. attributes (variables)
// 3. a constructor method (run via ‘new’)
// 4. methods (actions)
The Object-Oriented Paradigm
It can safely be said that the object has been
the driving force in the programming industry
for a very long time and will continue to be so
for the foreseeable future… today, just about
every major software development
methodology is based on objects.
Author, The Object-Oriented Thought Process
.NET (C#, Visual Basic)
These are all object-oriented languages.
“When should I use object-oriented programming?”
For me, the answer is always.
Red, Green, Refactor
Usually this applies to test-driven development…!
1. Red: decide what you want to do; your goals!
2. Green: using setup() and draw(),
write the code that satisﬁes your goals!
! a. into variables and functions!
! b. into objects