Object Oriented Programming CS160 - OOP. Objects Objects are a Objects are a way to organize and conceptualize a program as a set of interacting objects.

Slides:



Advertisements
Similar presentations
Introduction to Object Orientation System Analysis and Design
Advertisements

Understand and appreciate Object Oriented Programming (OOP) Objects are self-contained modules or subroutines that contain data as well as the functions.
By Waqas Over the many years the people have studied software-development approaches to figure out which approaches are quickest, cheapest, most.
When is Orientated Programming NOT? Mike Fitzpatrick.
Department of Computer Engineering Faculty of Engineering, Prince of Songkla University 1 5 – Abstract Data Types.
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.
Module 2: Object-Oriented Programming
Ch 12: Object-Oriented Analysis
Object-Oriented Analysis and Design
Introduction To System Analysis and Design
Object-Oriented Databases v OO systems associated with – graphical user interface (GUI) – powerful modeling techniques – advanced data management capabilities.
Chapter Object-Oriented Practices. Agenda Object-Oriented Concepts Terminology Object-Oriented Modeling Tips Object-Oriented Data Models and DBMSs.
Object-oriented Programming Concepts
Visual Basic Introduction IDS 306 from Shelly, Cashman & Repede Microsoft Visual Basic 5: Complete Concepts and Techniques.
WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science) MCA, MSc[IT], MTech[IT],MPhil (Comp.Sci), PGDCA, ADCA, Dc. Sc. & Engg.
INTRODUCTION TO JAVA PROGRAMMING Chapter 1. What is Computer Programming?
C++ fundamentals.
CSC241: Object Oriented Programming
OBJECT ORIENTED PROGRAMMING IN C++ LECTURE
Object Oriented Programming
CPT 140 Programming Constructs1 OBJECT ORIENTED TECHNOLOGY Terminology and Basic Concepts.
Introduction To System Analysis and design
C++ Object Oriented 1. Class and Object The main purpose of C++ programming is to add object orientation to the C programming language and classes are.
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.
Introduction to Object-oriented programming and software development Lecture 1.
11 1 Object oriented DB (not in book) Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel Learning objectives: What.
Object Oriented Programming Lecturer: Andreas P. Adi
OBJECT AND CLASES: THE BASIC CONCEPTS Pertemuan 8 Matakuliah: Konsep object-oriented Tahun: 2009.
An Object-Oriented Approach to Programming Logic and Design
CONCEPTS OF OBJECT ORIENTED PROGRAMMING. Topics To Be Discussed………………………. Objects Classes Data Abstraction and Encapsulation Inheritance Polymorphism.
Introduction to Objects Adapted from “TEN STEPS TO OBJECT-SPEAK” a CPT Tech Talk by Joy Starks September 17, 1999.
Introduction To System Analysis and Design
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Object-Oriented Programming (OOP) CSC-2071 (3+1=4 Credits) Lecture No. 1 MBY.
CHESS PROGRAM Kristal McKinstry Diana Thai Khalifa Sangarie
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 24P. 1Winter Quarter C++ Lecture 24.
SNPL1 Woochang Lim What (Variable) + How (Function) = Object Objects are the physical and conceptual things we find in the universe around us. Object-Oriented.
Object-Oriented Design Simple Program Design Third Edition A Step-by-Step Approach 11.
Object-Oriented Design Justin Callanan CS 597. Object-Oriented Basics ● Data is stored and processed in “objects” ● Objects represent generalized real.
C++ Programming Basic Learning Prepared By The Smartpath Information systems
1/26 On-demand Learning Series Software Engineering of Web Application - Object-Oriented Development & UML Hunan University, Software School.
Learners Support Publications Object Oriented Programming.
Abstraction ADTs, Information Hiding and Encapsulation.
: Maha Sabri Altememe Lecturer : Maha Sabri Altememe Lecture :1 1.
9-Dec Dec-15  INTRODUCTION.  FEATURES OF OOP.  ORGANIZATION OF DATA & FUNCTION IN OOP.  OOP’S DESIGN.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Introduction to Object Oriented Programming (OOP) Object Oriented programming is method of programming.
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.
Object Oriented Programming. OOP  The fundamental idea behind object-oriented programming is:  The real world consists of objects. Computer programs.
Chapter 20 Concepts for Object-Oriented Databases Copyright © 2004 Pearson Education, Inc.
Author: DoanNX Time: 45’.  OOP concepts  OOP in Java.
OOPS CONCEPT.  OOPS  Benefits of OOPs  OOPs Principles  Class  Object Objectives.
Introduction to Classes Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg.
Object means a real word entity such as pen, chair, table etc. Object-Oriented Programming is a methodology or paradigm to design a program using classes.
Systems Analysis & Programming 10.1 Systems Development 10.2 Programming: A Five-Step Procedure Generations of Programming Languages 10.4 Programming.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
 The Object Oriented concepts was evolved for solving complex problems. Object- oriented software development started in the 1980s. Object-oriented design.
What is an Object Objects are key to understanding object-oriented technology. An object can be considered a "thing" that can perform a set of related.
Object Oriented Programming
Object-Oriented Programming Concepts
JAVA By Waqas.
CHAPTER 5 GENERAL OOP CONCEPTS.
Classes and OOP.
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
Basic Object Oriented Approach
COP 3330 Object-oriented Programming in C++
By Rajanikanth B OOP Concepts By Rajanikanth B
Object Oriented Programming(OOP)
Presentation transcript:

Object Oriented Programming CS160 - OOP

Objects Objects are a Objects are a way to organize and conceptualize a program as a set of interacting objects. The programmer defines the types of objects that will exist. The programmer creates object instances as they are needed. The programmer specifies how these various object will communicate and interact with each other.

Objects cont. Writing software often involves creating a computational model of real-world objects and processes. Objects are a programming methodology that gives programmers tools to make this modeling process easier. Software objects, like real-world objects, have attributes and behaviors. Your best bet is to think in terms as close as possible to the real world; trying to be tricky or cool with your system is almost always the wrong thing to do (remember, you can’t beat mother nature!)

Object Examples attributesbehaviors Real-world objects have attributes and behaviors. Examples: Dog Attributes: breed, color, hungry, tired, etc. Behaviors: eating, sleeping, etc. Bank Account Attributes: account number, owner, balance Behaviors: withdraw, deposit

Objects Concepts Encapsulation Hiding of details Inheritance Creating object from objects and using/changing the parents methods and attributes. Polymorphism Using a function to perform an action, yet will be different based on what it is applied too.

Encapsulation These variables and methods are accessible from within the object, but not accessible outside it. hiding some definitions and type information within the object, is known as encapsulation. Encapsulation is roughly analogous to only allowing a user to access data in a database via predefined stored procedures. Users can access the data, but not directly and without having to have direct knowledge of its structure. Hidden State Variable s and Methods Visible Methods Visible Variables Class Definition

Graphical Model of an Object State variables make up the nucleus of the object. Methods surround and hide (encapsulate) the state variables from the rest of the program. theBalance acctNumber accountNumber() balance() Instance variables Methods deposit()withdraw()

Inheritance Concept were a new object is created from an existing object, this will inherit attributes and methods of its parent object. This allows for the new object to define new (additional) attributes and methods. overriding (changing the behavior) existing attributes and methods. continue hiding existing attributes and methods.

Polymorphism (having multiple forms) Polymorphism is one of the essential features of objects; The same message sent to different types of objects results in: execution of behavior that is specific to the object and, possibly different behavior than that of other objects receiving the same message. draw() Example: the message draw() sent to an object of type Square and an object of type Circle will result in different behaviors for each object.