SlideServe
Menu
Préférences
© SlideServe · v2026

Object Oriented Design and Programming

herbertmartin avatar
15 diapositives · 222 Views · Jan 05, 2020

Learn principles of Object-Oriented Analysis, Design & Programming using C++. Includes classes, inheritance, polymorphism, UML, encapsulation, reusability. Enhance software development skills efficiently.

Object Oriented Design and Programming - slide 1
01 / 15Object Oriented Design and Programming
1 / 17

Télécharger la présentation

Object Oriented Design and Programming
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Object Oriented Design and Programming Alan Goude Email: a.goude@shu.ac.uk Room: Sheaf 9323

  2. Unit delivery and assessment • weeks 1 - 6 • 2hr lectures, 1hr labs • weeks 7 -12 • 1hr lectures, 2hr labs • 100% coursework assessment • Two Assignments each contributing 50%

  3. Topics - • The object oriented approach OOA,OOD and OOP • C++ Stream Input/Output • Reference variables • Classes • Terminology • Class members – data and functions(methods) • Class access – public, private & protected • Separation of interface from implementation • Constructor and destructors • function overloading • Dynamic memory allocation • Object aggregation and composition • UML notation for classes and class aggregation.

  4. Topics - • Operator overloading • Additional class features • Friend functions • Static members • Inheritance • Polymorphism • Abstract classes, Virtual functions • Templates, Standard Template Libray & More UML (time permitting)

  5. Books • Thinking in C++ by Bruce Eckel • Vol.1 (basics) and Vol.2 (advance features) • Assumes knowledge of ‘C’ • Free Electronic versions available from- • http://www.mindview.net/Books • C++ : How to program by Deitel & Deitel • See info at http://www.deitel.com/ • Fourth Edition available Oct 2002 • Includes a version of Microsoft Visual C++

  6. Other books and information sources • Object-Oriented Analysis and Design with Applications by Grady Booch • Unified Modelling Language User Guide by Grady Booch, Ivar Jacobson, James Rumbaugh • UML Distilled: A Brief Guide to the Standard Object Modeling Language (2nd Edition) by Martin Fowler, Kendall Scott • My Web page - http://www.shu.ac.uk/schools/eng/teaching/ag1 • Try a www.google.com search

  7. Object Oriented Design and Programming • OOD – Major proponents and developers • Grady Booch, Ivar Jacobson, and James Rumbaugh • Unified Modelling Language (UML) • OOP – Several OOP languages • Smalltalk, Eiffel. Pure OOPL • C++, Java. Said to be object based OOPL

  8. Software Tools • Object Oriented Programming (OOP) • C++ • Using Microsoft Visual Studio C++ compiler • Object Oriented Design (OOD) • UML (Unified Modelling Language)

  9. Object Model • Key ideas • Abstraction • Encapsulation • Modularity • Hierarchy • Minor elements of the object model • Typing (language dependent – data typing) • Concurrency (OS dependent) • Persistence

  10. Abstraction • Helps to deal with complexity by focusing on certain features and suppressing others. • Focus on interface (outside view) • Separate behaviour from implementation

  11. Hierarchy • A way of ordering abstractions • Object hierarchical abstractions (“HAS A” or “PART OF” relationship) • Interfaces and behaviours at each level • Higher levels are more abstract

  12. Encapsulation • Also known as information hiding • Hides the details of the implementation • Complementary to abstraction

  13. Abstraction, Encapsulation and Software Design • Interface should be simple, providing the required behaviour. • User is presented with high level abstract view. The detail of the implementation is hidden from the user. • The designer may change the implementation keeping the interface the same.

  14. Modularity • A common “Divide and conquer” approach • Partitions a problem into sub-problems reducing complexity • Modularity packages abstractions into discrete units • In C++ classes are the basic modules providing encapsulation and abstraction

  15. Re-usability - Inheritance • Class Hierarchies • Derived class inherits properties and behaviour of a base class • Allows code re-use. • Derived classes can have • additional properties and behaviour, • or over-ride inherited behaviour.