1 / 10

Object Oriented Programming

Object Oriented Programming. A brief introduction to OOP Key Concepts and Terms Skills Teaching Techniques Further Resources. A Brief Description Primarily concerned with Classes and Objects Objects communicate via messages Encourage re-use Speeds development

rafael-day
Download Presentation

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. Object Oriented Programming A brief introduction to OOP Key Concepts and Terms Skills Teaching Techniques Further Resources

  2. A Brief Description • Primarily concerned with Classes and Objects • Objects communicate via messages • Encourage re-use • Speeds development • Improves reliability and maintenance

  3. Key Concepts • Object • entity containing programming, code and data • Classes • determines everything about an object • Methods • a reaction to a message

  4. Concepts • Inheritance • sub classes inherit characteristics from parent classes • Encapsulation (aka information hiding) • user only accesses objects through messages • ensures data is kept private • Polymorphism • allows objects to change depending on content

  5. SKILLS REQUIRED • Analytical • Be able to analyse problems • Conceptual • Produce Ideas • ProjectManagement • Organise timetable for completion • People • Be able to work individually or in a group

  6. Methods for Teaching • Didactic • Interactive (as J Grey’s presentation) • Car park simulation in Excel/Visual Basic • Dogs (or football or whatever is of interest to the class)

  7. Inheritance • Dog • four legs • tail • barks • Wild Dog • savage • catches own food • Alsatian • short coat • large • growls • eats loads • Pet Dog • house trained (usually) • food from a tin • West Highland Terrier • short coat • small • yaps • eats small amounts

  8. Encapsulation The Alsatian • Hungry • growling • menacing • drooling • Well Fed • friendly • placid • wagging tail Guard Dog Pet Dog Or a Guard Dog that has just done a good job!

  9. Polymorphism growling menacing + = food Friendly

  10. Resources • John Grey’s website (04-10-02) • John Grey’s presentation (04-10-02) • www.math.utah.edu/java/java/objects/ (04-10-02) • www.yahoo.com & search for “key concepts of object orientated programming” (04-10-02) • www.cee.hw.ac.uk/~alison/ds98/node15.html (04-10-02) • http://www.desy.de/gna/html/cc/introduction.html (09-10-02)

More Related