Содержание
- 2. Objective By the end of this module, you’ll be able to— Define object-oriented concepts Implement object-oriented
- 3. Module Topics Object-Oriented Concepts—An Overview History of object-orientation Objects Classes Instances Methods Principles of Object-Orientation Encapsulation
- 4. Object-Oriented Concepts—An Overview
- 5. History of Object-Orientation Object-Orientation (OO): Developed at Xerox’s Palo Alto Research Center in the 1970s Developed
- 6. Some Key Object Oriented Principles
- 7. Objects An object is the UML way of representing an entity Real, like a car Conceptual,
- 8. AB Suite Objects
- 9. Classes A class acts as a blueprint of an object. A class describes a group of
- 10. Class Types Primitive class — Is an abstract description of a simple item of data, such
- 11. Instances Instances defined by AB Suite objects are: Attribute - Member of an object that holds
- 12. Current Instance Current Instance is the particular instance of an object being invoked. Current instance qualifiers
- 13. Example Consider that the CUST ispec contains a user defined method MyMethod(). MyMethod() contains logic that
- 14. Methods Methods contain logic that defines the behavior of a class. Provide an interface to the
- 15. Parameters and Return Variables Method parameters and return variables return during a method call. Values passed
- 16. Method Logic Method Logic defines the behavior of a class. It protects the calling method from
- 17. Principles of Object Orientation
- 18. Encapsulation Encapsulation is also known as information hiding. It works on the concept of visibility and
- 19. Example Business Rule: A Product’s Stock balance (STOCKBAL) should never be less than zero Stock balance
- 20. Encapsulation—Best Practices Convert a single code sequence into smaller pieces of code. This avoids redundancy and
- 21. Composition Composition is a way of combining existing simple objects to build new and more complex
- 22. Example 1 CASH and SALE events contain an instance of the CUST ispec Customer Number field
- 23. Example 2 In System Modeler, a composite class: Can be used anywhere in the model Can
- 24. Generalization Generalization is the process of factoring out common behavior and structuring them into another class.
- 25. Inheritance Inheritance is a relationship between two classes. In this mechanism, a class (subclass) inherits attributes,
- 26. Example Superclass More Generalized Subclass More Specialized
- 27. Customizing Inherited Behavior Customizing Inherited Behavior is commonly known as overriding members. In this process subclass
- 28. IsInner Relationship Inner class is defined as a class within another class. Instances of the inner
- 29. Polymorphism Polymorphism is one of the useful applications of Inheritances. It provides the ability to refer
- 30. AB Suite Framework
- 31. AB Suite Framework Objects AB Suite Framework objects consist of built-in: Classes Instances Methods Framework objects
- 32. Stereotypes Stereotype indicates how an object behaves in the AB Suite framework processing cycle. For example,
- 33. Overriding Framework Methods Stereotyped classes inherit a set of framework methods that do not contain any
- 35. Скачать презентацию