Object-Oriented Programming

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

When is Orientated Programming NOT? Mike Fitzpatrick.
Department of Computer Engineering Faculty of Engineering, Prince of Songkla University 1 5 – Abstract Data Types.
1 :)Advanced:) Visual Basic laura leventhal and julie barnes.
Creating Object Oriented Programs Object oriented (OO) terminology Class vs. object Instantiate an object in a project Understand Class_Initialize / Terminate.
Visual Basic Introduction IDS 306 from Shelly, Cashman & Repede Microsoft Visual Basic 5: Complete Concepts and Techniques.
C++ fundamentals.
OBJECT ORIENTED PROGRAMMING IN C++ LECTURE
BACS 287 Basics of Object-Oriented Programming 1.
O BJECT O RIENTATION F UNDAMENTALS Prepared by: Gunjan Chhabra.
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.
Learners Support Publications Object Oriented Programming.
CS 3050 Object-Oriented Analysis and Design. Objectives What is “Object-Oriented?” Object-Oriented Approach Vs. Structured Approach How Has the Object-Oriented.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Basic Concepts of OOP.  Object-Oriented Programming (OOP) is a type of programming added to php5 that makes building complex, modular and reusable web.
Question 1 Which of the following requires object database technology? A. Storing employee picture on disk B. Retrieving an employee picture C. Retrieving.
Exceptions and Handling
Software Design and Development Languages and Environments Computing Science.
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.
Principles of Programming & Software Engineering
OOP - Object Oriented Programming
Introduction to .NET Florin Olariu
Object-Orientated Programming
Object Oriented Programming
Object-Oriented Modeling
Sachin Malhotra Saurabh Choudhary
Programming Logic and Design Seventh Edition
The Movement To Objects
OBJECT ORIENTED CONCEPT
Chapter 8: More About OOP and GUIs
CHAPTER 5 GENERAL OOP CONCEPTS.
Programming in Java Sachin Malhotra, Chairperson, PGDM-IT, IMS Ghaziabad Saurabh Chaudhary, Dean, Academics, IMS Ghaziabad.
Object-Oriented Database Management System (ODBMS)
OOP What is problem? Solution? OOP
Data Structures Data Structure is a way of collecting and organising data in such a way that we can perform operations on these data in an effective.
Object Oriented Concepts -II
Object-Orientated Programming
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
Object Oriented Concepts
structures and their relationships." - Linus Torvalds
CS313D: Advanced Programming Language
Names, Binding, and Scope
Chapter 15 Lists Objectives
OOP vs Structured Programming
Lec 3: Object-Oriented Data Modeling
Object-oriented Design in Processing
Object oriented vs procedural programming
Software Engineering Lecture 10.
ISC321 Database Systems I Chapter 10: Object and Object-Relational Databases: Concepts, Models, Languages, and Standards Spring 2015 Dr. Abdullah Almutairi.
Programming paradigms
Object Oriented Programming
Object-oriented Design in Processing
Object Orientated Programming
ITEC 3220A Using and Designing Database Systems
C++ Programming ㅎㅎ String OOP Class Constructor & Destructor.
Introduction to Data Structure
Introduction to Object-Oriented Programming
Workshop for Programming And Systems Management Teachers
CodePainter Revolution Trainer Course
Intro to Collections.
Object-oriented Design in Processing
Object Oriented Design & Analysis
Object-oriented Design in Processing
Object Oriented Programming(OOP)
structures and their relationships." - Linus Torvalds
Modern Collections Classes & Generics
Chapter 20 Object-Oriented Concepts and Principles
Presentation transcript:

Object-Oriented Programming Also known as OOP Based upon the classification model used by people Things are objects that belong to classes Related objects can share attributes (properties) and behavior Tables and desks belong to a class of furniture They share common attributes in that both generally have 4 legs and a large, flat surface on top True OOP languages support Encapsulation Polymorphism Inheritance VB Object-based since it does not support inheritance Regardless, many OOP concepts can still be applied

Classes without Inheritance What do we do if we now provide our employees with email? We need to add that to both classes

Classes with Inheritance What do we do if we now provide our employees with email? We add email to the base class & manager and laborer inherit that attribute

Classes with Multiple Levels of Inheritance

Defining User Objects Add a Class to a Project Add Properties to a Class Create Objects using Instances of a Class Object References Class Events Initialize Event Terminate Event Add Methods

Adding a Class to a Project Add a Class module (different from a module that we used for global declarations and procedures)

Collections vs Arrays A list of objects An array of objects Allows objects to be added at any position Allow objects to be deleted from the middle Objects may be retrieved using a key value more power, more flexible, less efficient An array of objects New objects added to end of array No easy way to allow removal of objects Search code is required to retrieve objects less power, less flexible, more efficient Collections result in simpler, easier-to-read, easier-to-maintain code than object arrays

Collections Processing Create a Collection Retrieve an Object Reference from a Collection Iterate through a Collection Delete an Object Reference from a Collection Delete a Collection