CHAPTER 5 GENERAL OOP CONCEPTS.

Slides:



Advertisements
Similar presentations
Understand and appreciate Object Oriented Programming (OOP) Objects are self-contained modules or subroutines that contain data as well as the functions.
Advertisements

Department of Computer Engineering Faculty of Engineering, Prince of Songkla University 1 5 – Abstract Data Types.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 12Slide 1 Software Design l Objectives To explain how a software design may be represented.
Solutions to Review Questions. 4.1 Define object, class and instance. The UML Glossary gives these definitions: Object: an instance of a class. Class:
Classes & Objects Computer Science I Last updated 9/30/10.
Introduction to Object Oriented Programming Java.
Object-Oriented Metrics. Characteristics of OO ● Localization ● Encapsulation ● Information hiding ● Inheritence ● Object abstraction.
Object-Oriented Databases v OO systems associated with – graphical user interface (GUI) – powerful modeling techniques – advanced data management capabilities.
Design The goal is to design a modular solution, using the techniques of: Decomposition Abstraction Encapsulation In Object Oriented Programming this is.
Chapter 1 Principles of Programming and Software Engineering.
Visual Basic Introduction IDS 306 from Shelly, Cashman & Repede Microsoft Visual Basic 5: Complete Concepts and Techniques.
1 Introduction to C++ Programming Concept Basic C++ C++ Extension from C.
WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science) MCA, MSc[IT], MTech[IT],MPhil (Comp.Sci), PGDCA, ADCA, Dc. Sc. & Engg.
© 2006 Pearson Addison-Wesley. All rights reserved2-1 Chapter 2 Principles of Programming & Software Engineering.
Introduction to Object-oriented Programming Introduction to Object-oriented Programming CMPS 2143.
BACS 287 Basics of Object-Oriented Programming 1.
Object Oriented Programming
OOP- OBJECT OBJECT PROGRAMMING By KRATI SHARMA 02 XI-B ✏✏✏✏ ☺☻☺☻☺☻☺ ✏✏✏✏
UFCEUS-20-2 : Web Programming Lecture 5 : Object Oriented PHP (1)
Object Oriented Programming Development
Object Oriented Programming Lecturer: Andreas P. Adi
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
Welcome to OBJECT ORIENTED PROGRAMMIN Date: 10/09/2014 Prepared By Prepared By : VINAY ALEXANDER PGT(CS) KV jhagrakhand.
CONCEPTS OF OBJECT ORIENTED PROGRAMMING. Topics To Be Discussed………………………. Objects Classes Data Abstraction and Encapsulation Inheritance Polymorphism.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
What is Object-Oriented?  Organization of software as a collection of discreet objects that incorporate both data structure and behavior.
MADE BY :-- SHAHNAWAZ KHAN RAVINDER SINGH ABHIJEET AUGSTINE MADE BY :-- SHAHNAWAZ KHAN RAVINDER SINGH ABHIJEET AUGSTINE PRESENTATIONONC++PRESENTATIONONC++
Learners Support Publications Object Oriented Programming.
Basic Concepts of Object Orientation Object-Oriented Analysis CIM2566 Bavy LI.
© 2006 Pearson Addison-Wesley. All rights reserved2-1 Chapter 2 Principles of Programming & Software Engineering.
© 2006 Pearson Addison-Wesley. All rights reserved 2-1 Chapter 2 Principles of Programming & Software Engineering.
WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science)
Basic Concepts of OOP.  Object-Oriented Programming (OOP) is a type of programming added to php5 that makes building complex, modular and reusable web.
COP 4331 – OOD&P Lecture 7 Object Concepts. What is an Object Programming language definition: An instance of a class Design perspective is different.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (2/2)
Welcome to OBJECT ORIENTED PROGRAMMING Prepared By Prepared By : VINAY ALEXANDER PGT(CS) KV jhagrakhand.
Chapter 12: Support for Object- Oriented Programming Lecture # 18.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
Principles of Programming & Software Engineering
Object Oriented Systems Design
Chapter 2 Object-Oriented Paradigm Overview
Object-Oriented Programming
CSC 222: Object-Oriented Programming
CSC 222: Object-Oriented Programming
Object-Oriented Design
Programming paradigms
CSC 222: Computer Programming II
Object Oriented Programming
Object-Oriented Programming Concepts
Sachin Malhotra Saurabh Choudhary
Concepts of Object Orientation
Programming in Java Sachin Malhotra, Chairperson, PGDM-IT, IMS Ghaziabad Saurabh Chaudhary, Dean, Academics, IMS Ghaziabad.
Data Abstraction: The Walls
GENERAL OOPs CONCEPTS.
Principles of Programming and Software Engineering
OOP What is problem? Solution? OOP
CSC 222: Object-Oriented Programming
Object Oriented Concepts -II
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
PRINCIPALES OF OBJECT ORIENTED PROGRAMMING
Object Oriented Concepts
Object Oriented Analysis and Design
Why Object-oriented Programming?
Object Orientated Programming
CIS601: Object-Oriented Programming in C++
Object Oriented Analysis and Design
Object-Oriented PHP (1)
Object-Oriented Programming
Object Oriented Design & Analysis
Agenda Software development (SD) & Software development methodologies (SDM) Orthogonal views of the software OOSD Methodology Why an Object Orientation?
Presentation transcript:

CHAPTER 5 GENERAL OOP CONCEPTS

OBJECT ORIENTED PROGRAMMING

OBJECT ORIENTED PROGRAMMING OBJECT is an identifiable entity with some characteristics and behavior. In OOP programming object represents a entity that can store data and has its interface through functions. CLASS is a template/blue-print representing a group of objects that share common properties and relationships.

DATA ABSTRACTION ABSTRACTION refers to the act of representing essential features without including the background details or explanations. It focuses upon the observable behavior of an object.

ENCAPSULATION The wrapping up of data and operations / functions (that operate on the data ) into a single unit (called class) is known as ENCAPSULATION. Encapsulation is a way to implement data abstraction. It hides the details of the implementation of an object. It focuses upon the implementation that gives rise to observable behavior.

DATA ABSTRACTION & ENCAPSULATION MEMBER FUNCTIONS DATA MEMBER FUNCTIONS MEMBER FUNCTIONS DATA DATA THE OOP APPROACH DATA ABSTRACTION & ENCAPSULATION

MODULARITY It is the property of a system that has been decomposed into a set of cohesive and loosely coupled modules. It reduces complexity of program It Creates a number of well-defined, documented boundaries within the program.

Inheritance is the capability of one class of things to inherit capabilities or properties from other class. UP NEXT Why inheritance was introduced into OO languages ?

INHERITANCE + POINTS Capability to express the inheritance relationship which makes it ensure closeness with real world models. Idea of reusability. It allows addition of additional features to an existing class without modifying it. A subclass defines only those features which are unique to it. If a class A inherits properties of another class B, then all subclasses of A will automatically inherit the properties of B. This is called transitive nature of inheritance.

POLYMORPHISM It is the ability for a message or data to be processed in more than one form. It is a property by which the same message can be sent to objects of several different classes, & each object can respond in a different way depending on its class. Languages that support classes but not polymorphism are called OBJECT BASED languages.

ADVANTAGES OF OOPs It models real world well. Programs are easy to understand. It offers class reusability. Already created classes can be reused without having to write them again. It facilitates quick development as parallel development of classes is possible. Programs are easier to test, manage & maintain.

DIS-ADVANTAGES OF OOPs Classes tend to be overly generalized. The Relations Among Classes Becomes Artificial At Times. OOP Programs Design Is Tricky. One needs to do proper planning & proper design for OOP programming. To program with OOPs, programmer needs proper skills such as design skills, programming skills, thinking in terns of objects etc.

THANK YOU