Download presentation
Presentation is loading. Please wait.
Published byJulius Bridges Modified over 8 years ago
1
The Object Oriented concepts was evolved for solving complex problems. Object- oriented software development started in the 1980s. Object-oriented design deals with the solution domain and closer to the final implementation. OOP provides a consistent means of communication among analysts, designers, programmers, and end-users.
2
1. Produce reliable software 2. Reduce production cost 3. Develop reusable software modules 4. Reduce maintenance cost 5. Quicken the completion time of software development
3
An object can be considered a "thing" that can perform a set of related activities. The set of activities that the object performs defines the object's behavior. For example, the hand can grip something or a student can give the name or address. Class is composed of three things: a name, attributes, and operations Data are represented by instance variables or data variables in a class. The operations are also known as behaviors, or methods,or functions.
4
State,Behavior,Identity states or properties operations identity Properties maintain the internal state of an object. Operations provide the appropriate functionality to the object. Identity differentiates one object from the other. Object name is used to identify the object.
5
For example: The term SDLC is a type of software development and Requirement is an instance of SDLC. Data or Operations of a class can be declared in three ways: public protected private public:- These are declarations that are accessible from outside the class to anyone who can access the object of this class. protected:- These are declarations that are accessible from within the class itself and from within subclasses.
6
private:- These are declarations that are accessible only from within the class itself. class bank { public: int debit; [[Data]] int credit; void acc_info(); [[functions]] }; void main() { bank b; {[object delaration]} b.credit; b.acc_info(); }
7
Encapsulation: From the user’s point of view, a number of features are packaged in a capsule to form an entity. entity offers a number of services in the form of interfaces by hiding the implementation details. The term encapsulation is used to describe the hiding of the implementation details. The basic property of an object is encapsulation: it encapsulate the data and information it contains well defined abstraction. for this,an object can provide some its client can use it. information hiding implementation independence Encapsulation provides a layer of security around manipulated data, protecting it from external interference and misuse.
8
Abstraction : Real-world objects are very complex and it is very difficult to capture the complete details.It is a tool that permits a designer to consider a component at an abstract level without worrying about the details of the implementation of the component. Abstraction is a design technique that focuses on the and behavior. For Example : The features such as things in the trunk of a car, the medical history of the manager traveling in the car, and the working mechanism of the car engine are not necessary for the driver. meaningful name such as driver reflecting the function minimum and at the same time complete feature Abstraction specifies necessary and sufficient descriptions rather than implementation details. It results in separation of interface and implementation.
9
Data Abstraction: Any Entity in the real world provide some services to the environment to which it belongs. The operations defined on a data object are the only operations that can be performed on those objects from outside an object, the internals of the are hidden. Example: stack overflow,underflow. Functional Abstraction: A module is specified by the function it performs. For Example, a module to compute the log of a value can be abstractly represented by the function log. Similarly, a module to sort an array can be represented by the specification of security.
10
Inheritance: Abstraction specifies necessary and sufficient descriptions rather than implementation details. It results in separation of interface and implementation It uses the concept of reusability when we use the feature of one class can easily access in another class.one class based on the definition of existing classes or base class. That feature can be accessed by using derived class.
11
Polymorphism: polymorphism combines with two words poly+ morphism poly means many morphism means forms. Oops paradigms can refer to be objects of different types at different times. By using polymorphism object entity has a two type static and dynamic type. The static type of an object is the object is declared in the program text, and it remains unchanged. the dynamic type of an entity can change at run time.For Example: plus operator can be used two different ways at different time it can be used either in the add two operands or it can be used concatenate a two strings.
12
Modularity : A system is considered modular if it consists a large program divided in different component or different module. Each component can be implemented separately and a change a one component has minimal impact on the other components. It can be more helpful in debugging,testing and its maintenance or its implementation. these modules can be interact with each other. Each module needs to be support a well defined abstraction and partitioning come together.
13
Message passing: It is very important to understand the way a problem is addressed. The manager first calls the stenographer to prepare the letter and dictates the matter. The stenographer takes shorthand notes of the dictation and prepares the letter using a computer and a printer. Now the letter is ready for signing and the manager signs it. Then the manager calls the driver to take him to the customer’s site. The driver along with the manager reaches the destination with the help of a car.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.