Mastering OOP Concepts *see OOP fundamentals PowerPoint What is a class What is an object What is instanstiation? (creating an instance of a class) Object orientaed concepts and terminology
The context of UML One of the first ever object orientated languages Was originally used for producing simulations It provided the framework for many of the object oriented languages today. What is Simula?
Features of OO Languages Abstraction Polymorphism Encapsulation Inheritance Message Passing/Dynamic Binding
Features of OO Languages Abstraction “Hiding the complexity of the program, Presenting only the essential features”
UML Features of A way of visually showing the architecture of the whole system v a A way of showing the same system from different points of view P O V A standard graphical set of shapes representing objects in the system g o A standard way of documenting the attributes (data) of each object s a A way of defining functions/methods that can change the state of objects F or M A way of showing how the objects interact with each other i A way of showing how to generate code directly from a UML diagram c
Two types of UML diagrams tructure S ehaviour B
Things you need to look out for: From OCR A Level Computing June 2010 F453 Key Diagrams identify … look for Class Diagram Inheritance Class/object Object Diagram Polymorphism Attributes/properties From OCR Past Paper A Level Computing State Diagram Encapsulation Methods/Operations Look for the “state” Current/Processing Abstraction Superclass Sequence Diagram Look for the dots (from top to bottom)
What type of Diagram is this? Class Diagram What feature of OO does The arrow signify? Inheritance ? ?
What type of Diagram is this? Object Diagram
What type of Diagram is this? Sequence Diagram Examples of “Messages”
Past Paper Questions From OCR A Level Computing June 2011 Past paper From OCR Past Paper A Level Computing
From June 2011 F453 OCR computing past paper *example
From June 2011 F453 OCR computing past paper
From June 2011 F453 OCR computing past paper
Answers L S i
From June 2011 F453 OCR computing past paper
Answers s p From June 2011 F453 OCR computing past paper
Answer
From June 2011 F453 OCR computing past paper
Answer
From June 2011 F453 OCR computing past paper
Answers From June 2011 F453 OCR computing past paper
Past Paper Questions From OCR A Level Computing June 2011 Past paper From OCR Past Paper A Level Computing
Answers
Answers
Answers
Answers
What do you remember about: Sequence Diagrams? From Jan 2013 F453 Past Paper What do you remember about: Sequence Diagrams?
State Diagram
(6 marks)
Mark scheme Answer