1 / 9

Intro to Object-Oriented Programming

Intro to Object-Oriented Programming. What happens when you go to Jack in the Box?. Is it the same person that makes all your food?. What can the FryerGuy do?. Classes (definition or blueprint for an object). The FryerGuy is a class He has attributes (something that describes him) name

jaden
Download Presentation

Intro to Object-Oriented Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Intro to Object-Oriented Programming

  2. What happens when you go to Jack in the Box?

  3. Is it the same person that makes all your food?

  4. What can the FryerGuy do?

  5. Classes (definition or blueprint for an object) • The FryerGuy is a class • He has attributes (something that describes him) • name • He has methods (what the object can do) • makeFries • makeTacos • …

  6. Objects (the actual instances) • Bob is a FryerGuy • He has attributes (something that describes him) • name -> Bob • He has behaviors (what the object can do) • makeFries • makeTacos • …

  7. DrawingTool class • Sort the following into Attributes and Behaviors: • direction • drawCircle • forward • move • pencil is up or down? • turnLeft

  8. DrawingTool class • Attributes • direction • Up or down? • Behaviors • drawCircle • forward • move • turnLeft

  9. Library files Hi h; h=new Hi(); h.hello(); h.bye(); Hello World! Bye! Editor Interpreter Compiler Class files Java Bytecode Program Source Code Compiling and Running

More Related