Object-Oriented Programming. An algorithm is a step-by-step process. A computer program is a step-by-step set of instructions for a computer. Every computer.

Slides:



Advertisements
Similar presentations
Databases MMG508. DB Properties  Definition of a database: “A database is a collection of interrelated data items that are managed as a single unit”
Advertisements

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.
© Janice Regan Problem-Solving Process 1. State the Problem (Problem Specification) 2. Analyze the problem: outline solution requirements and design.
1 Programming for Engineers in Python Autumn Lecture 5: Object Oriented Programming.
OBJECT ORIENTED ANALYSIS & DESIGN Vassilka Kirova Department of Computer & Information Science NJIT.
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Cisc Complex Instruction Set Computing By Christopher Wong 1.
BACS 287 Basics of Object-Oriented Programming 1.
Object Oriented Programming
An Introduction to Programming Using Alice Object-Oriented Programming.
COMP313A Programming Languages Introduction. More Housekeeping Stuff Reading Material Textbook –Programming Languages: Principles and Practice by Kenneth.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Alice: A Visual Introduction to Programming Third Edition.
What is Object-Oriented Programming?. Objects – Variables and Logic inside "Objects", not standalone code – Objects contain related variables and functions.
CSCI-383 Object-Oriented Programming & Design Lecture 4.
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
CSC1401: Introductory Programming Steve Cooper
Programming 1 1. Introduction to object oriented programming and problem-solving.
Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose.
Chapter 1 What is Programming? Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas, E.
©Brooks/Cole, 2003 Foundations of Computer Science from Data Manipulation to Theory of Computation Behrouz A. Forouzan, Brooks/Cole — Thomson Learning,
Chapter 6 Object-Oriented Java Script JavaScript, Third Edition.
COMU114: Introduction to Database Development 1. Databases and Database Design.
Object-Oriented Programming. An object is anything that can be represented by data in a computer’s memory and manipulated by a computer program.
Object-Oriented Design Simple Program Design Third Edition A Step-by-Step Approach 11.
OBJECT-ORIENTED PROGRAMMING (OOP) WITH C++ Instructor: Dr. Hany H. Ammar Dept. of Electrical and Computer Engineering, WVU.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 6: Object-Oriented Programming.
ELEN 033 Lecture #1 Tokunbo Ogunfunmi Santa Clara University.
Program & Programming Languages. Introduction to Programming Programming is the process of writing a computer program in a language that the computer.
Lecture 11 Data Structures, Algorithms & Complexity Introduction Dr Kevin Casey BSc, MSc, PhD GRIFFITH COLLEGE DUBLIN.
Introduction to Object-oriented Programming Java API.
Computer Science and Software Engineering© 2014 Project Lead The Way, Inc. Procedural Abstraction Object-Oriented Code.
Data Structures and Algorithms Dr. Tehseen Zia Assistant Professor Dept. Computer Science and IT University of Sargodha Lecture 1.
COMPUTER SCIENCE Data Representation and Machine Concepts Section 2.2 Instructor: Lin Chen Sept 2013.
WHAT IS COMPUTER SCIENCE? Phil Sands K-12 Outreach Coordinator for Computer Science.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Object-Oriented Programming. Objectives Distinguish between object-oriented and procedure-oriented design. Define the terms class and object. Distinguish.
Computer Science, Algorithms, Abstractions, & Information CSC 2001.
Chapter 3: Developing Class Methods Object-Oriented Program Development Using Java: A Class-Centered Approach.
1 Chapter 1 Programming Languages Evolution of Programming Languages To run a Java program: Java instructions need to be translated into an intermediate.
CS 1110/1111 The Case for Computer Science CS 1110/1111 – Introduction to Programming.
CS 101 INTRODUCTION TO COMPUTING * image from The Central Eglinton Community Centre website.
Technology Vocabulary Matthew L. Morris. A-D Application- A program or group of programs designed for end users. Data- Distinct pieces of information.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Object-Oriented Programming: Classes and Objects Chapter 1 1.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
Chapter 11 An introduction to object-oriented design.
Introduction to Java. Java  An Object-Oriented, platform-neutral, secure language.  Object Oriented – software development method – a program is thought.
1 Quiz Show Programming Terms. 2 Alice - 3D Virtual Programming Vocabulary Quiz Board Chapter 1 Chapter 2a Chapter 2b Chapter 3 Chapter 4 $100 $200 $300.
Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose.
Maitrayee Mukerji. INPUT MEMORY PROCESS OUTPUT DATA INFO.
Copyright ©2005  Department of Computer & Information Science Object Oriented Concepts.
Introduction to Java Chapter 1 - Introduction to Java1 Chapter 1 Introduction to Java.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
Advanced Data Structures Lecture 1
Object-Oriented Programming: Classes and Objects
Java Software Solutions
CMSC201 Computer Science I for Majors Lecture 18 – Recursion
Introduction to Computational Thinking
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
Section 11.1 Class Variables and Methods
Introduction to Problem Solving and Programming CS140: Introduction to Computing 1 8/19/13.
Procedural Abstraction Object-Oriented Code
A Media Computation Cookbook
CSC Classes Required for TCC CS Degree
Chapter 0: Introduction
It’s All (just) Bits 1) Numbers are bits 2) Text is bits
Unit 3 lesson 2-5 The Need For Algorithms- Creativity in Algorithms – Simple Commands - Functions Day 18.
Ch. 1 Vocabulary Alice.
Object-Oriented Programming (OOPs)
Java Software Solutions
Presentation transcript:

Object-Oriented Programming

An algorithm is a step-by-step process. A computer program is a step-by-step set of instructions for a computer. Every computer program is an algorithm. Algorithms have a long history in science, technology, engineering and math.

Object-Oriented Programming Early computers were far less complex than computers are today. Their memories were smaller and their programs were much simpler.

Object-Oriented Programming They usually executed only one program at a time.

Object-Oriented Programming Modern computers are smaller, but far more complex than early computers. The can execute many programs at the same time.

Object-Oriented Programming Computer scientists have introduced the notion of objects and object-oriented programming to help manage the growing complexity of modern computers. An Introduction to Programming Using Alice

Object-Oriented Programming An object is anything that can be represented by data in a computer’s memory and manipulated by a computer program. An Introduction to Programming Using Alice

Object-Oriented Programming An object is anything that can be represented by data in a computer’s memory and manipulated by a computer program. An Introduction to Programming Using Alice Numbers

Object-Oriented Programming An object is anything that can be represented by data in a computer’s memory and manipulated by a computer program. Text

Object-Oriented Programming An object is anything that can be represented by data in a computer’s memory and manipulated by a computer program. Pictures

Object-Oriented Programming An object is anything that can be represented by data in a computer’s memory and manipulated by a computer program. Sound

Object-Oriented Programming An object is anything that can be represented by data in a computer’s memory and manipulated by a computer program. Video

Object-Oriented Programming An object is anything that can be represented by data.

Object-Oriented Programming An object can be something in the physical world or even just an abstract idea. An airplane, for example, is a physical object that can be manipulated by a computer.

Object-Oriented Programming An object can be something in the physical world or even just an abstract idea. A bank transaction is an example of an object that is not physical.

Object-Oriented Programming To a computer, an object is simply something that can be represented by data in the computer’s memory and manipulated by computer programs.

Object-Oriented Programming The data that represent the object are organized into a set of properties. The values stored in an object’s properties at any one time form the state of an object. Name: PA 3794 Owner:US Airlines Location:39 52′ 06″ N 75 13′ 52″ W Heading:271° Altitude:19 m AirSpeed:0 Make:Boeing Model:737 Weight:32,820 kg

Object-Oriented Programming Computer programs implement algorithms that manipulate the data. In object-oriented programming, the programs that manipulate the properties of an object are the object’s methods.

Object-Oriented Programming We can think of an object as a collection of properties and the methods that are used to manipulate those properties. Properties Methods

Object-Oriented Programming A class is a group of objects with the same properties and the same methods.

Object-Oriented Programming Each copy of an object from a particular class is called an instance of the object.

Object-Oriented Programming The act of creating a new instance of an object is called instantiation.

Object-Oriented Programming A class can be thought of as a blueprint for instances of an object.

Object-Oriented Programming Two different instances of the same class will have the same properties, but different values stored in those properties.

Object-Oriented Programming The same terminology is used in most object- oriented programming languages. Object Instance Property Method Instantiation Class State