Oops slide
-
Upload
ashok-sharma -
Category
Technology
-
view
522 -
download
0
description
Transcript of Oops slide
REPRESENTED BY:- ASHOK SHARMA,SAKSHI RATHI &ESHU AGRAWALB.TECH. 3rd YEAR (CS)I.T.M. ENGG. COLLEGE ALIGARH
Object Oriented Programming
In the OOT user can develop their software using
a new way and thinking about models.Organized around real world concept. C++Small talkJava
Procedural Paradigm Program defines data and then calls
subprogram to act on the dataObject Paradigm Program creates objects that
encapsulate the data and procedures that operate on the data
1. Each entity can be easily modify , easily reuse and easily upgrade to alter their data or function easily.
2. You can extend any entity according to your requirement or future plane.
3. It also has the scope of future enhancement.
4. You can easily relate one entity with another. It means you can built the relationship between more entities.
5. You can add new function or behavior easily in any of the entity.
What Is an object?
Object is a real world entity.
An object is a real or abstract item that contains
information and method that allow it to be manipulated.
For Ex:-OOP’s world | Procedural Language
world Class | structure { | { Objects | }structure variables }
What is an attribute?
An attribute is data value hold by an entity.
What is a function?The function describes the behavior of the
object. The function is a way to access the attributeFunction is also called method.What is a class?Class refer to a group of similar object .The class is group of the objects with the samedata structure (attributes) and behavior(function& method).For Ex:- class XYZ { Integer a, float b Gets number }
Basically the term “object-orient” means that we
organize our software as a combination orgrouping of different type of objects (real
worldentities) that intercorporate both data
structureas well as behavior .
1. Inheritance2. Polymorphism 3. Encapsulation4. Data abstraction
We can use these properties to make our software convenient and attractive. Properties can be defined as:-
Inheritance is a mechanism of sharing attributes
and operations among classes.Basically inheritance is of five types,1. Single inheritance2. Multilevel inheritance3. Multiple inheritance4. Hierarchical inheritance5. Hybrid inheritance
Polymorphism means same thing in different
form. This is one of the crucial feature of OOPs.
Itsimply mean “one name multiple forms”.
The property of binding the member data and
member function in a single unit is calledencapsulation.When we ties data structure and the
behavior in asingle unit called class. This property of
bindingthe data and function in single unit calledencapsulation.
Data abstraction is a process by which we can
hide un-necessary information from the user.
User can only see those information which are
necessary to him.For Ex:- TV remote