4th Lesson OOSE PDF
Document Details
Uploaded by ContrastyRisingAction
Savitribai Phule Pune University
Tags
Summary
These notes cover object-oriented programming terminology, including polymorphism and inheritance, and discuss concepts related to system development, data encapsulation, data abstraction, and object-oriented analysis (OOA).
Full Transcript
## 4. Object Oriented Programming Terminology ### Polymorphism - Draw() - Shape - Circle - Draw() - Triangle - Draw() - Rectangle - Draw() - Poly - many - morphism - forms ### Inheritance - There are 5 types of inheritance 1. **Single Inheritance** (Sim...
## 4. Object Oriented Programming Terminology ### Polymorphism - Draw() - Shape - Circle - Draw() - Triangle - Draw() - Rectangle - Draw() - Poly - many - morphism - forms ### Inheritance - There are 5 types of inheritance 1. **Single Inheritance** (Simple Inheritance) - A - Parent class / Super class / Base class - B - Child class / Derived class / sub class 2. **Multiple Inheritance** - A - B - Base class - C - Derived class 3. **Multilevel Inheritance** - A - Base class - B - Derived class - C - Derived class 4. **Hierachial Inheritance** - A - Parent class - B - Child class - C - Child class - D - Child class 5. **Hybrid Inheritance** - A - B - C - D ### Data Encapsulation ### Data Abstraction ### System Development Process - System Requirements - System Development - New System - **System Development** is the process of **Defining**, **Designing**, **Testing** and **Implementation** of a new system. - The term **System Development** refers to all activities that go into producing a **information system solutions**. - **Algorithm + data structure = Program** ## A Software System a set of mechanisms for performing certain actions on a certain Data. In object-oriented program is simply collections of well-design object. **[Data]** - Object - Operations ### Object-oriented Program Diagram - Function / Data Methods - System Development Methods - Function / Data - Object Oriented - SREM / DD - SA / SD - OOA - OOP - OOSE ## System Development Methods ## Structured Analysis and Design Technique (SADT), Requirement Driven Design (RDD), based on (SREM) Software Requirement Engineering method, structure analysis (SA), Structure Design (SD) are traditional SE Function / Data Methods function and data are separate function that are active and have behaviour where as data is passive holder of information which is affected by functions. The system is divided into models that is functions while data is send between those functions. system it is difficult to maintain SD (Structure Design) using function Data Methods. A measure DD this system is that all function must known how is DS (Data Structure) works. A small change Develope System will affect the system it is difficult to find program and correct system Function / Data System more difficult to modify. ### We can divide visibility of class in the following: - **(IMP)** 1. **Public (+)** - A Declaration that is accessible to all classes. 2. **Protected (#)** - A declaration that is accessible only to the class exrel and in sub classes only 3. **Private (-)** - A declaration that is accessible only to the class itself. - A declaration that is accessible only by classes in the same package. ### OOA (Object oriented Analysis) - The purpose of OOA with all other analysis is to obtain and understanding, depending on only system functional requirement OOA is processorгidentyfying software engineering Requirement and Developing software specification in a term of system software object model which compailer interacting object. - The main difference between object oriented analysis and other form analysis that in object oriented approach requirement are organized arround object which integrated both the data and **function**. ## Has Define OOA as object-oriented analysis is method of analysis that examines requirement from the perspective of the classes and object found in the vocabulary of the problems domain. ### The primary task in OOA are: 1. Finding the objects. - Object can found Application Domain as naturally occur finding object not difficult but selected element object. Object should be selected in such a way that they will remain essential through out system life cycle. - In object-oriented method there are may be one type of object different by having different type of object, one can quickly obtain and overview of the system while with only one type of object it is difficult to see the difference between different object. it is important that object identify during analysis should be found in the design that is trassability. The object may be implemented using earlier develop code that is components. 2. Organizing the object - The organize objects and classes of objects, we have to use different criteria one of the criteria starts by considerly how similar classes of objects are to each other that is inheritance and another. criteria can be how an object is part of another object that is which object work with which other object. ### Object oriented Construction - **1) Analysis** - **2) Design** - **3) Implementation** - Identifying elements of and object model. - Elements to be identifying that belongs. - Occurrences - Attribute - External entities - Class name - Attributes - Operations - Roles - Organizational units - Places - Structures ### Object Model - Object Can be - Object can be external entities like other system, device people etc that produce and consume information to be used by - Things - Things like reports, display, letter, signal etc. There are part of the information domain. - Occurrence of E-mail - Occurrence of E-mail like a proper transfer or the complition of the series of robot moment that occure within the contain of a system operation. - Roles - Roles like a manager engineer sales person played by people who interact with the system organization unit. - Organization unit like division, group, team etc. that are relevant to an application etc. - Place - Place like manufacturing floor loading doct that establish the context of the problem and the overall function of the system. - Structure - Structure like sensor for vehicle or computer etc that define a class of a object or in the external related classes or objects. ### Specifying the attribute - An attribute is a name property of class which describe Range value class may have any number of attribute or no attributes at all. - Example., - Customer class has a name, address, phone no and date of birth. - In an abstracts this specify only attribute name which is inough we can also specify visibility scope multiplicity of each attribute. - Example., - Name: name only - Tname: visibility and name - Namestring: name any type ### Public (+) - Any outside classifier with visibility to the given classifier can use the feature specified by prepending the "+" Symbol. ### Protected (#) - A protected member variable is very similar to a private member but provides additional benefit that and they can be access child class which are called derive class in other word any decedent of the classifier can use the features. ### Private (-) - A private member variable or function cannot be access or even biewed from the outside the class only the clasifier uses can use features specified by prepending the "-" Symbol. ### Class - Visibility: - Customer - tname: string - address: string - #phone: string - Visibility of attributes