1
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

Mar 12th, Thursday

  • Upload
    ryder

  • View
    42

  • Download
    4

Embed Size (px)

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 Presentation

Citation preview

Page 1: Mar 12th, Thursday

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