BACS 287 Basics of Object-Oriented Programming 1.

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.
1 OBJECT-ORIENTED CONCEPTS. 2 What is an object?  An object is a software entity that mirrors the real world in some way.  A software object in OOP.
OOP - Object Oriented Programming Object Oriented Programming is an approach to programming that was developed to make large programs easier to manage.
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.
1 CIS601: Object-Oriented Programming in C++ Note: CIS 601 notes were originally developed by H. Zhu for NJIT DL Program. The notes were subsequently revised.
Object-Oriented Analysis and Design
Chapter 1 Object-Oriented System Development
Object-Oriented PHP (1)
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.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 The.
Chapter Object-Oriented Practices. Agenda Object-Oriented Concepts Terminology Object-Oriented Modeling Tips Object-Oriented Data Models and DBMSs.
Object Oriented System Development with VB .NET
Fall 2007ACS-1805 Ron McFadyen1 Programming Concepts Chapter 4 introduces more advanced OO programming techniques. Construction of a programs usually requires:
OBJECT ORIENTED ANALYSIS & DESIGN Vassilka Kirova Department of Computer & Information Science NJIT.
Stéphane Ducasse6.1 Essential Concepts Why OO? What is OO? What are the benefits? What are the KEY concepts? Basis for all the lectures.
7M701 1 Class Diagram advanced concepts. 7M701 2 Characteristics of Object Oriented Design (OOD) objectData and operations (functions) are combined 
Marcelo Santos – OOAD-CDT309, Spring 2008, IDE-MdH 1 Object-Oriented Analysis and Design - CDT309 Period 4, Spring 2008 Object-oriented concepts.
Object-oriented Programming Concepts
Vrije Universiteit amsterdamPostacademische Cursus Informatie Technologie Themes and Variations abstraction -- the object metaphor modeling -- understanding.
Chapter 10 Class and Method Design
03/12/2001 © Bennett, McRobb and Farmer What Is Object-Orientation? Based on Chapter 4 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis.
Object Oriented Concepts. Movement toward Objects Instead of data-oriented or process-oriented Analysis, many firms are now moving to object-oriented.
Slide 1 Chapter 10 Class and Method Design. Slide 2 REVISITING THE BASIC CHARACTERISTICS OF OBJECT-ORIENTATION.
1 INTRODUCTION TO OOP Objective: Know the difference between functional programming and OOP Know basic terminology in OOP Know the importance of OOP Know.
Programming Paradigms Imperative programming Functional programming Logic programming Event-driven programming Object-oriented programming A programming.
Object Oriented Programming
Building The Analysis Model. Object-Oriented Analysis The object oriented analysis define all classes, the relationships and behavior associated with.
1 INTRODUCTION TO OOP Objective: Know the difference between functional programming and OOP Know basic terminology in OOP Know the importance of OOP Know.
UFCEUS-20-2 : Web Programming Lecture 5 : Object Oriented PHP (1)
Eclipse – making OOP Easy
Introduction to Object-oriented programming and software development Lecture 1.
An Object-Oriented Approach to Programming Logic and Design
CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.
What Is Object-Orientation?
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
1 Object-Oriented Systems Development Bahrami © Irwin/ McGraw-Hill Chapter 2: Object Basics Object-Oriented Systems Development Using the Unified Modeling.
Object Oriented Programming Principles Lecturer: Kalamullah Ramli Electrical Engineering Dept. University of Indonesia Session-3.
1 Life Cycle of Software Specification Design –Risk Analysis –Verification Coding Testing –Refining –Production Maintenance.
Advanced Object- Oriented Programming Programming Right from the Start with Visual Basic.NET 1/e 14.
Object-Oriented Programming. An object is anything that can be represented by data in a computer’s memory and manipulated by a computer program.
Basic OOP Concepts and Terms. In this class, we will cover: Objects and examples of different object types Classes and how they relate to objects Object.
1 Programming Paradigms Object Orientated Programming Paradigm (OOP)
What is Object-Oriented?  Organization of software as a collection of discreet objects that incorporate both data structure and behavior.
ITEC 3220A Using and Designing Database Systems Instructor: Gordon Turpin Course Website: Office: CSEB3020.
CSC 131 Fall 2006 Lecture # 6 Object-Oriented Concepts.
Programming Paradigms Lecturer Hamza Azeem. What is PP ? Revision of Programming concepts learned in CPLB Learning how to perform “Object-Oriented Programming”
Basic Concepts of Object Orientation Object-Oriented Analysis CIM2566 Bavy LI.
OOP Review CS 124.
Basic Concepts of OOP.  Object-Oriented Programming (OOP) is a type of programming added to php5 that makes building complex, modular and reusable web.
OOPS CONCEPT.  OOPS  Benefits of OOPs  OOPs Principles  Class  Object Objectives.
Question 1 Which of the following requires object database technology? A. Storing employee picture on disk B. Retrieving an employee picture C. Retrieving.
COP 4331 – OOD&P Lecture 7 Object Concepts. What is an Object Programming language definition: An instance of a class Design perspective is different.
Basic Characteristics of Object-Oriented Systems
Object Oriented Programming in Java Habib Rostami Lecture 2.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
Programming paradigms
The Movement To Objects
CHAPTER 5 GENERAL OOP CONCEPTS.
The Object-Oriented Thought Process Chapter 1
Object Oriented Concepts -I
Types of Programming Languages
DEV-08: Exploring Object-oriented Programming
Object Oriented Analysis and Design
Object-Oriented PHP (1)
Chapter 20 Object-Oriented Concepts and Principles
Presentation transcript:

BACS 287 Basics of Object-Oriented Programming 1

BACS 287 What is Object-Oriented Programming? An approach to programming that combines data and procedures into a single unit (i.e., an object) This produces a tight coupling between the data and the logic that acts upon the data Results in natural modular programs that promote code reuse

BACS 287 What is Object-Oriented Programming? Objects can be grouped into hierarchies (i.e., trees) that share characteristics via inheritance The definition of a type of object is called a class The template of the objects and their inheritance relationships is called the class hierarchy

BACS 287 What is Object-Oriented Programming? Visual Basic is an object-oriented language True object-oriented languages involve 3 core concepts: – Inheritance – Encapsulation – Polymorphism

BACS 287 Object-Oriented Inheritance Enables you to create a new object based upon an existing object merely my stating what is different This is called sub-classing Example: Class: Vehicle – Sub-Classes: Car, Boat, Airplane The sub-classes share the basic attributes of vehicle but have differences. The differences are said to “specialize” the super-class.

BACS 287 Object-Oriented Encapsulation Means hiding the implementation details within an object Only the methods and properties needed to make the object perform are exposed to the application (i.e., the “outside world”) Enables conceptual abstraction Visual Basic supports encapsulation well

BACS 287 Object-Oriented Polymorphism Enables different objects to respond to the same message in different ways Each object type does whatever is most appropriate for the data it contains For Example: the ADD message would produce different results in objects that held dates, times, strings, and numbers

BACS 287 Object-Oriented Terminology Class Sub-class Class Hierarchy Inheritance Object (instance) – Properties – characteristic of the object – Methods – procedure that an object to perform – Events – actions or situations that trigger methods

BACS 287 Object-Oriented Terminology Message – what the event sends to the method to trigger it to execute Encapsulation Polymorphism Conceptual abstraction – hiding unnecessary details Code reuse Collection – group of objects with something in common

BACS 287 Object-Orientation and Event-Driven Programming Event-Driven programming and Object- Oriented programming are closely related The event model of the programming language determines the events that the objects can respond to It is possible to separate the two concepts, but this is normally not done

BACS 287 Quiz What are the 3 key characteristics of an object-oriented language? What is meant by “conceptual abstraction” How is “polymorphism” related to the class hierarchy? What does an “event” trigger? Is Visual Basic a “true” object-oriented language?