











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
description of oops
Typology: Study notes
Uploaded on 02/26/2015
1 / 19
This page cannot be seen from the preview
Don't miss anything!












Java Programming
Topic: Object Oriented Programming
ANIL SAROLIYA
Text/ Reference Books
OOP Definition
“Object-oriented programming is a way of
implementation in which programs are
organized as cooperative collections of objects,
each of which represents an instance of some
class, and those classes(categories) are all
members of a hierarchy of classes united via
inheritance relationships.''
New Programming Paradigms Requirement
The cost of software development & maintenance is increasing substantially as compared to the cost of the hardware of a computing system, but hardware technology is improved. This increasing cost in software & technological improvement in hardware demands a cost effective & more technical compatible programming paradigm. Software maintenance is the process of modifying or extending the capabilities of the existing software.
5
OO Programming
assigning responsibilities
to these objects.
other objects by sending
messages.
the methods of an object
Object
What is Object Oriented Programming?
smaller pieces.
written software components.
written or developed from existing ones.
Why do we care about objects?
Object = Data + Methods
or
An object has the responsibility to know and
the responsibility to do.
The two parts of an object
Features of OOP Contd…
It allows the extension and reuse of existing code without having to rewrite the code from scratch. Inheritance involves the creation of new classes (derived classes) from the existing ones (base classes). It enabling the creation of a hierarchy of classes , which gives the name of relationship: like: Parent Class & Child Class Relationship Base Class & Derived Class Relationship Super Class & Sub Class Relationship Two popular forms of inheritance are single and multiple inheritance. Single inheritance refers to deriving a class from a single base class (^13)
Features of OOP Contd…
Depending on the object features supported, the languages are classified into two categories:
**1. Object-Based Programming Languages
Improvement over the structured programming paradigm Emphasis on data rather than algorithm Data abstraction is introduced in addition to procedural abstraction Data and associated operations are unified into a single unit which is termed as Object Programs are designed around the data being operated, rather than operations themselves (data decomposition-rather than algorithmic decomposition) Relationships can be created between similar, yet distinct data types
In structured programming or conventional programming or function oriented programming or procedural programming, data are defined as global data and access (or changes) by all the functions of a program without any restriction. Due to this data security and integrity has reduced
Amity School of Engineering & Technology B.Tech., CSE(5th Sem.)