Basic Object-Oriented Concepts

Slides:



Advertisements
Similar presentations
Sprite-visual object (actor on the stage) Scripts- Tells actors (sprites) what to do.
Advertisements

Pages and boxes Building quick user interfaces. learning objectives o Build a quick UI with pages and boxes o understand how pages and boxes work o click.
Java Script Session1 INTRODUCTION.
 Recap – Python Basics. Python  Python is an interpreter which reads and executes a python script.  A python script is a text file, which contains.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Objects and Classes First Programming Concepts. 14/10/2004Lecture 1a: Introduction 2 Fundamental Concepts object class method parameter data type.
9-1 Chapter 9 (part I): Analysis Classes (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Intro to Java while loops pseudocode. 1 A “Loop” A simple but powerful mechanism for “making lots of things happen!” Performs a statement (or block) over.
Introduction to Alice Basics : What is Alice? Object Oriented Definitions What Does it Look Like? Where Can I Use it?
Visual Basic: An Object Oriented Approach 3 – Making Objects Work.
Visual Basic Introduction IDS 306 from Shelly, Cashman & Repede Microsoft Visual Basic 5: Complete Concepts and Techniques.
Chapter 2: Developing a Program Extended and Concise Prelude to Programming Concepts and Design Copyright © 2003 Scott/Jones, Inc.. All rights reserved.
Simon Woodworth Object Oriented Design What is it? Why do it? Simon Woodworth, 19 August 2004.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Game Programming Using Scratch. Scratch Scratch is an IDE (Integrated Development Environment) that allows users to create and run simple graphics/games.
New Mexico Computer Science For All More Looping in NetLogo Maureen Psaila-Dombrowski.
Object Oriented Programming
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 16 Topics: Intro to HTML/CSS –Questions? Tech Club Forums.
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
MT311 Java Application Development and Programming Languages Li Tak Sing( 李德成 )
Programming With Alice. Alice Free Java based, 3D programming tool Enables the manipulation and interaction of 3D objects Can also.
Welcome! The Topic For Today Is…Review for Test. Your Topic Basics of Programming Control Statements Programming Concepts InteractionAlice Concepts 200.
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.
Python Mini-Course University of Oklahoma Department of Psychology Day 2 – Lesson 6 Program Design 4/18/09 Python Mini-Course: Day 2 - Lesson 6 1.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Object Oriented Design: Identifying Objects
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
Institute for Personal Robots in Education (IPRE)‏ CSC 170 Computing: Science and Creativity.
Object-Oriented Programming (OOP) CSC-2071 (3+1=4 Credits) Lecture No. 1 MBY.
Chapter 6 Object-Oriented Java Script JavaScript, Third Edition.
Learning Unity. Getting Unity
Introduction to Programming G50PRO University of Nottingham Unit 2 : Introduction To Scratch Paul Tennent
1/26 On-demand Learning Series Software Engineering of Web Application - Object-Oriented Development & UML Hunan University, Software School.
Introduction to Object-oriented Programming Java API.
: Maha Sabri Altememe Lecturer : Maha Sabri Altememe Lecture :1 1.
Java Fundamentals Usman Ependi UBD
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 5.
 In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  PHP Loops :  In.
Computer Game Design ActionScript is… Object-oriented programming Everything you do in ActionScript does something to some object* Some objects.
“everything is an object”. Class Template Code for defining an object Objects are created with NEW keyword (method) Namespace – (disambiguation) Context.
Programming Paradigms Different paradigms Procedural paradigm, e.g. Pascal Basic Functional paradigm, e.g. Lisp Declarative paradigm, e.g. Prolog Object-Oriented.
Objective You will be able to define the basic concepts of object-oriented programming with emphasis on objects and classes by taking notes, seeing examples,
CSD 340 (Blum)1 For Loops See Beginning JavaScript (Paul Wilton) p. 87.
IST 210: PHP LOGIC IST 210: Organization of Data IST210 1.
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
PYTHON WHILE LOOPS. What you know While something is true, repeat your action(s) Example: While you are not facing a wall, walk forward While you are.
Introduction to Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Chapter 6 Controlling Program Flow with Looping Structures.
PYTHON IF-STATEMENTS. What you know If something is true, then something happens Example If you heat water to 100 degrees Celsius, then it boils If it.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
ITSE 1430 – Introduction to C# Programing Chapter 1 – Introduction to Computers, the Internet and Visual C# ITSE Introduction to C# Programing 1.
CPRG 215 Introduction to Object-Oriented Programming with Java Module 3- Introduction to Object Oriented Programming concepts Topic 3.1 Fundamental Concepts.
Collision Theory and Logic
Collision Theory and Logic
Objects as a programming concept
Welcome to Computer Science Jeopardy
Understanding the Geometric Shape Code
While Loops Chapter 3.
Control Structures (Structured Programming) for controlling the procedural aspects of programming CS1110 – Kaminski.
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
Programs as Directions
Unit 6 part 5 Test Javascript Test.
Introduction to Object-Oriented Programming
Control Structures (Structured Programming) for controlling the procedural aspects of programming CS1110 – Kaminski.
Python While Loops.
Flow of Control Flow of control is the order in which a program performs actions. Up to this point, the order has been sequential. A branching statement.
Object Oriented Programming(OOP)
Introduction to Computer Science and Object-Oriented Programming
Presentation transcript:

Basic Object-Oriented Concepts 22-Apr-17

Object Oriented Programming Object-oriented programming (OOP) is a programming language model organized around objects Objects have a state or properties (information about the object stored in variables) size, height, position, balance Objects have a behavior or actions that it performs. Methods. move ____ turn____ Programming languages have predefined methods for each class.

Class <CAR> creates cars Everything in Java is in a class. Class called Car The class creates objects The class represents a template for creating objects of that class.

Class Car creates car objects: Share same attributes but they store different values. <7_series_BMW> Object <VW_Beetle> Object <Ford_Mustang> Share same attritubes: They have a ……. color – model# name doors You would store this in variables because it would be different for each object.

Example: A “Rabbit” object You could (in a game, for example) create an object representing a rabbit It would have data which is stored in variables. How hungry it is? = hungry = true; How frightened it is? frightened = false; Where it is? location = 0; What is its name? name = “Rabbit”; And methods: things it can do eat, hide, run, dig

Class <CAR> startEngine checkEngine fillTank getAmountOfGas Method of a Class Class <CAR> Every class has predefined methods for the object created. Methods allow the object created to perform an action startEngine checkEngine fillTank getAmountOfGas

Control flow of a program Three types of control flow that are used to execute a program Sequentially - all code will run sequentially Conditionals (if statements) Loops (repeats)

Introduction to programming thru SNAP Cloud storage if you create user name The program interface Click on object and script area to build your code