mar 12th, thursday
DESCRIPTION
Mar 12th, Thursday. WIC-3min – why do I care about the palindrome word? Classes & Objects so far R epresenting information (data) and actions (methods) within a unit (class) How to define a class (attributes & methods; private/public) How to create instances - PowerPoint PPT PresentationTRANSCRIPT
Mar 12th, Thursday• WIC-3min – why do I care about the palindrome word?• Classes & Objects so far
– Representing information (data) and actions (methods) within a unit (class)
– How to define a class (attributes & methods; private/public)– How to create instances– Encapsulation: objects are encapsulated and hide the details of their inner
workings from the client code (just like functions). Communication through the class’ methods (interface)
– Multiple classes• Critter program• Transformation of is word program• Debugging
– My program just freezes (I do not know what to do with it)• PLTL-exercise: Test me
– (http://www.cs101.org/ipij/design)– http://www.cs.wustl.edu/~kjg/CS101_SP97/Notes/Debugging/debugging.html