Object Oriented Concepts

Slides:



Advertisements
Similar presentations
OOP - Object Oriented Programming Object Oriented Programming is an approach to programming that was developed to make large programs easier to manage.
Advertisements

OBJECT ORIENTED PROGRAMMING M Taimoor Khan
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.
Classes and Object- Oriented... tMyn1 Classes and Object-Oriented Programming The essence of object-oriented programming is that you write programs in.
L3-1-S1 OO Concepts © M.E. Fayad SJSU -- CMPE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
Object-Oriented Databases v OO systems associated with – graphical user interface (GUI) – powerful modeling techniques – advanced data management capabilities.
Object Oriented System Development with VB .NET
Basic OOP Concepts and Terms
Chapter 13: Object-Oriented Programming
Sharif University of Technology Session # 7.  Contents  Systems Analysis and Design  Planning the approach  Asking questions and collecting data 
BACS 287 Basics of Object-Oriented Programming 1.
Object Oriented Programming
2.5 OOP Principles Part 1 academy.zariba.com 1. Lecture Content 1.Fundamental Principles of OOP 2.Inheritance 3.Abstraction 4.Encapsulation 2.
Introduction To System Analysis and design
Object Orientation An Object oriented approach views systems and programs as a collection of interacting objects. An object is a thing in a computer system.
11 1 Object oriented DB (not in book) Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel Learning objectives: What.
BCS 2143 Introduction to Object Oriented and Software Development.
An Object-Oriented Approach to Programming Logic and Design
OBJECT ORIENTED PROGRAMMING CONCEPTS ISC 560. Object-oriented Concepts  Objects – things names with nouns  Classes – classifications (groups) of similar.
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.
IT 21103/41103 System Analysis & Design. Chapter 05 Object Modeling.
What is Object-Oriented?  Organization of software as a collection of discreet objects that incorporate both data structure and behavior.
Chapter 4 Basic Object-Oriented Concepts. Chapter 4 Objectives Class vs. Object Attributes of a class Object relationships Class Methods (Operations)
Basic Concepts of OOP.  Object-Oriented Programming (OOP) is a type of programming added to php5 that makes building complex, modular and reusable web.
CLASS DIAGRAMS A classy approach to objects. The Basic Class Diagram  Class Name  Attributes (- indicates private each would have properties or accessor/mutator.
OOPS CONCEPT.  OOPS  Benefits of OOPs  OOPs Principles  Class  Object Objectives.
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)
1 Inheritance One of the goals of object oriented programming is code reuse. Inheritance is one mechanism for accomplishing code reuse. It allows us to.
Computer Programming II Lecture 5. Introduction to Object Oriented Programming (OOP) - There are two common programming methods : procedural programming.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
CPRG 215 Introduction to Object-Oriented Programming with Java Module 3- Introduction to Object Oriented Programming concepts Topic 3.1 Fundamental Concepts.
Databases and Database User ch1 Define Database? A database is a collection of related data.1 By data, we mean known facts that can be recorded and that.
OOP - Object Oriented Programming
Object-Oriented Design
Object Oriented Programming
Object-Oriented Modeling
Sachin Malhotra Saurabh Choudhary
Business System Development
The Movement To Objects
OBJECT ORIENTED CONCEPT
Chapter 8: More About OOP and GUIs
CHAPTER 5 GENERAL OOP CONCEPTS.
Object-Oriented Analysis and Design
The Object-Oriented Thought Process Chapter 1
OOP What is problem? Solution? OOP
Object Oriented Concepts -I
Object-Oriented Programming
Object-Orientated Programming
INTRODUCTION TO OOP Objective:
PRINCIPALES OF OBJECT ORIENTED PROGRAMMING
Object-Oriented Programming
Object Oriented Analysis and Design
Lecture 23 Polymorphism Richard Gesick.
Inheritance Basics Programming with Inheritance
Lec 3: Object-Oriented Data Modeling
Object-Oriented Programming
Chapter 20 Object-Oriented Analysis and Design
Computer Programming with JAVA
Basic OOP Concepts and Terms
Object Oriented Analysis and Design
Chapter 5.
Chapter 10 Thinking in Objects Part 1
Object-Oriented Programming
Chapter 11 Class Inheritance
ADVANCED OBJECT-ORIENTED PROGRAMMING
Object Oriented Programming(OOP)
UML  UML stands for Unified Modeling Language. It is a standard which is mainly used for creating object- oriented, meaningful documentation models for.
Presentation transcript:

Object Oriented Concepts

Object Orientation An Object oriented approach views systems and programs as a collection of interacting objects. An object is a thing in a computer system that is capable of responding to messages

The Idea of OOP The idea of OOP is to try to approach programming in a more natural way by grouping all the code that belongs to a particular object—such as a checking account or a customer—together

Objects Core to the idea of OOPs is the concept of an object. An object is anything that is relevant to your program A customer, an employee, Inventory, a database, a button, a form, a sale are all potential objects

Benefits of Objects More natural way to look at things Re-usability

Objects/Classes A class is a description of an object. This description can include attributes which describe the class It can also include “methods” which describe things the object can do. In programming an object is an actual instance of a class

Messages Object communicate among themselves by means of messages The also maintain “associative relationships” among themselves

A Class Diagram

Principles of OOP Abstraction Encapsulation Inheritance Polymorphism

Abstraction The idea of abstraction is that a class represents an “abstract” version of an object A customer class presents the abstract idea of what a customer is A sale class represents an abstract idea of what a sale is

Encapsulation Encapsulation refers to the idea that a class should contain all the properties and methods of an object It also means you should be able to use the object without knowing the details of how it is structured internally

Inheritance Inheritance means you can derive a new object from an existing one It also means that the new object will have access to (will inherit) the properties and methods from the parent object

Inheritance Generalization/ Specialization

Polymorphism Polymorphism means that objects descended from a particular types will behave appropriately For example (a listbox and a button are both descended from the same class called control—but they each will behave differently) Polymorphism is primarily implemented through overriding and overloading functions and operators

Relations Classes relate to each other in various ways We have already looked at inheritance Classes can also have a “binary” relation, in which one class calls another There is also a relation called composition in which one class is contained as a field in another class

Example of Composition