UNIT 1
INTRODUCTION TO OBJECT ORIENTATION
Object Orientation is a term used to describe the object – oriented(OO) method of building software. In an OO approach, the data is treated as the most important element and it cannot flow freely around the system. Restrictions are placed on the number of units that can manipulate the data. This approach binds the data and the methods that will manipulate the data closely and prevents the data from being inadvertently modified. The following figure shows the method1, method2, method3, and method4.
The ‘object’ forms the basis around which the following properties revolve:
1. Encapsulation
2. Abstraction, Implementation Hiding
3. Inheritance, dynamic binding, po lymorphism
4. Overriding and overloading
Encapsulation:
In Object Orientation, a class is used as a unit to group related attributes and operations together.
The outside world can interact with the data stored in the variables that represent the attribut es of the class only through the operations of that class. Thus, the operations act as interfaces of the object of the class with the outside world.
For example, consider the class Employee with attributes empID, empName and dateOfJoining with is given below
Powered By www.technoscriptz.com
What is OOAD?
Object-oriented analysis and design (OOAD) is a software engineering approach that models a system as a group of interacting objects. Each object represents some entity of interest in the system being modeled, and is characterised by its class, its state (data elements), and its behavior. Various models can be created to show the static structure, dynamic behavior, and runtime deployment of these collaborating objects. There are a number of different notations for representing these models, such as the Unified Modeling Language (UML).
Object-oriented analysis (OOA) applies object -modelling techniques to analyze the functional requirements for