Lesson Objectives Aims Key Words

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.
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.
OBJECT ORIENTED PROGRAMMING IN C++ LECTURE
Software design and development Marcus Hunt. Application and limits of procedural programming Procedural programming is a powerful language, typically.
Object Oriented Programming
Object Oriented Software Development
5.1 and 5.4 through 5.6 Various Things. Terminology Identifiers: a name representing a variable, class name, method name, etc. Operand: a named memory.
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.
BCS 2143 Introduction to Object Oriented and Software Development.
O BJECT O RIENTATION F UNDAMENTALS Prepared by: Gunjan Chhabra.
An Object-Oriented Approach to Programming Logic and Design
CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.
Features of Object Oriented Programming Lec.4. ABSTRACTION AND ENCAPSULATION Computer programs can be very complex, perhaps the most complicated artifact.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
CHESS PROGRAM Kristal McKinstry Diana Thai Khalifa Sangarie
Definition of Object - Oriented Language.. Object-oriented programming (OOP) is a programming language model organized around "objects" rather than "actions"
1 Programming Paradigms Object Orientated Programming Paradigm (OOP)
CS 3050 Object-Oriented Analysis and Design. Objectives What is “Object-Oriented?” Object-Oriented Approach Vs. Structured Approach How Has the Object-Oriented.
HIGH-LEVEL Language Revision Guide By Tom. Declarative programming The computer is given a set of facts......And a Goal This finds all members with 2G.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Chapter More on Classes Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg.
Algorithms and Computer Programming. Algorithms algorithm is an ordered sequence of instructions for solving a problem. Look at it as a building blocks.
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Software Design and Development Languages and Environments Computing Science.
CSCE 240 – Intro to Software Engineering Lecture 3.
Object Oriented Programming in Java Habib Rostami Lecture 2.
HIGH-LEVEL LANGUAGE PROGRAMMING PARADIGMS. Programming languages come in many forms or 'paradigms'. Each form of language offers advantages over other.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
Introduction to Object-oriented Programming
Object-Oriented Programming
Intro to Computer Science II
Lesson Objectives Aims Key Words
Programming paradigms
Object-Orientated Programming
Visit for more Learning Resources
Object Oriented Programming
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING
OOP: Object-oriented programming
JAVA By Waqas.
Lesson Objectives Aims You should be able to:
CHAPTER 5 GENERAL OOP CONCEPTS.
Classes & Objects There are two main programming paradigms: Procedural Object-Oriented Up to now, everything we have done has been procedural.
Objects as a programming concept
An Introduction to Programming and VB.NET
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
INTRODUCTION TO OOP Objective:
PRINCIPALES OF OBJECT ORIENTED PROGRAMMING
C++.
Object Oriented Analysis and Design
Print slides for students reference
Lesson Objectives Aims Key Words
Object oriented vs procedural programming
Basic Object Oriented Approach
Lesson Objectives Aims Key Words:
Advanced Programming Behnam Hatami Fall 2017.
Features of OOP Abstraction Encapsulation Data Hiding Inheritance
An Introduction to Object Orientated Programming
Introduction to Object-Oriented Programming
Extended Learning Module G
Introducing Java.
Object Oriented Analysis and Design
Final and Abstract Classes
Object-Oriented Programming
2.1 Introduction to Object-Oriented Programming
Object Oriented Programming (OOP)- Assist. Prof. Dr
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Presentation transcript:

Lesson Objectives Aims Key Words You should be able to identify the features of object oriented languages You should be able to distinguish between object oriented and procedural languages Identify benefits of object orientation Key Words

Object Oriented Programming The two most common methods of programming are procedural and object oriented – but what does this mean? Mmm object orientation

Procedural Languages Procedural programming is all about giving the computer instructions… step by step – in sequence Procedural programming relies on procedures (aka routines/subs) containing instructions to be carried out by the computer

Object Oriented Programming (OOP) Object Oriented Programming is where things get a bit cleverer and flexible Instructions are carried out using objects An object is part of the programme that is able to carry out actions and interact with other elements of the programme OOPs I did it again

Object Oriented Programming (OOP) Objects have properties and methods… these are easily compared to real life objects We also rely on classes; these are the blueprints for our objects and outline some key features and capabilities of the object. Object: A person Property: Harold (name) Method: Pose for stock photos (something the object is capable of doing)

Classes So the class is a blueprint for our objects. They contain reusable elements that are common amongst a set of objects. Classes can contain properties and/or methods. Here’s a class diagram… Person Name Weight Eye Colour Talk Walk Class name Properties Methods

Classes Encapsulation is when properties for an object aren’t seen – they may be used by the object for calculations but we don’t see them Inheritance is when certain properties are inherited from one class to another to prevent repetition of properties or methods Superclass Person Name Weight Eye Colour getWeight() getEyeColour() Male Beard Length Beard Colour getBeardLength() Female getPresident() Is President? Subclasses

Object Ivor: Male Weight: 14st Eye Colour: Green Beard Length: 40cm Beard Colour: Grey Weight and Eye Colour have been inherited from the super class! Male Beard Length Beard Colour getBeardLength() Because of encapsulation the properties may be hidden (private)… we’ll need to use a method to check them. Hillary: Female Weight: 14st Eye Colour: Green Beard Length: 40cm Beard Colour: Grey getPresident() “Yes”

Which is better? Procedural programming provides little protection for data – it’s easy for variables to be overwritten by accident causing the programme to behave in a way that wasn’t intended It’s difficult to reuse parts of procedural code OOP takes advantage of elements having certain things in common with each other

Which is better? Procedural Programming is based on procedures operating based on data. OOP combines the two – procedures and data to form the objects

Review/Success Criteria You should know You should be able to identify the features of object oriented languages You should be able to distinguish between object oriented and procedural languages Identify benefits of object orientation You you you oughta know