Objects, Classes, and Methods

Slides:



Advertisements
Similar presentations
Structures. Procedural (Imperative) Languages Procedural languages work on the basis of explicitly telling the computer ‘how to do something’; by using.
Advertisements

Object-Oriented Programming Python. OO Paradigm - Review Three Characteristics of OO Languages –Inheritance It isn’t necessary to build every class from.
Computer Science Dept. Fall 2003 Object models Object models describe the system in terms of object classes An object class is an abstraction over a set.
An Introduction to Programming and Object Oriented Design using Java 2 nd Edition. May 2004 Jaime Niño Frederick Hosch Chapter 0 : Introduction to Object.
Unified Modeling Language
Objects and Classes First Programming Concepts. 14/10/2004Lecture 1a: Introduction 2 Fundamental Concepts object class method parameter data type.
Object Oriented System Development with VB .NET
OBJECT ORIENTED ANALYSIS & DESIGN Vassilka Kirova Department of Computer & Information Science NJIT.
Basic OOP Concepts and Terms
OBJECT ORIENTED ANALYSIS & DESIGN Vassilka Kirova Department of Computer & Information Science NJIT.
Fall 2005CSE 115/503 Introduction to Computer Science I1 Lecture #4 Agenda Announcements Review Questions? Classes and objects UML class diagrams Creating.
Objects & Object-Oriented Programming (OOP) CSC 1401: Introduction to Programming with Java Week 15 – Lecture 1 Wanda M. Kunkle.
Introduction to Alice Basics : What is Alice? Object Oriented Definitions What Does it Look Like? Where Can I Use it?
Object-oriented Programming Concepts
1 Introduction to C++ Programming Concept Basic C++ C++ Extension from C.
Object Oriented Paradigm Programming Paradigms En Mohd Norafizal A.Aziz.
9-Aug-15 Vocabulary. Programming Vocabulary Watch closely, you might even want to take some notes. There’s a short quiz at the end of this presentation!
Object Oriented Software Development
BCS 2143 Introduction to Object Oriented and Software Development.
1 A Student Guide to Object- Orientated Systems Chapter 4 Objects and Classes: the basic concepts.
OBJECT AND CLASES: THE BASIC CONCEPTS Pertemuan 8 Matakuliah: Konsep object-oriented Tahun: 2009.
An Object-Oriented Approach to Programming Logic and Design
SE-1010 Dr. Mark L. Hornick 1 Introduction to Object-Oriented Programming (OOP) Part 1.
1 Chapter 2 (Cont.) The BA’s Perspective on Object Orientation.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Object-Oriented Programming
Big Idea 2: Abstraction reduces information and detail to facilitate focus on relevant concepts. Enduring Understanding: A combination of abstractions.
OBJECT-ORIENTED PROGRAMMING (OOP) WITH C++ Instructor: Dr. Hany H. Ammar Dept. of Electrical and Computer Engineering, WVU.
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.
 Computer Science 1MD3 Introduction to Programming Michael Liut Ming Quan Fu Brandon.
Chapter 4 Software. Chapter 4: Software Generations of Languages Each computer is wired to perform certain operations in response to an instruction. An.
UML / UML 2.0 Diagrams (Part I) 1. Overview of the 13 diagrams of UML Structure diagrams 1.Class diagram 2.Composite structure diagram (*) 3.Component.
OOP (Object Oriented Programming) Lecture 1. Why a new paradigm is needed? Complexity Five attributes of complex systems –Frequently, complexity takes.
Copyright 2006 Oxford Consulting, Ltd1 January Introduction to C++ Programming is taking A problem Find the area of a rectangle A set of data.
TeachJava! 2003 Corky Cartwright Dung Nguyen Stephen Wong Charlie Reis, James Hsia, Peter Centgraf.
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
JAVA CLASSES, METHODS AND VARIABLES.  Defined Noun: A set or category of things having some property or attribute in common and differentiated from others.
Object Oriented Programming and Data Abstraction Earl Huff Rowan University.
CPS120: Introduction to Computer Science Lecture 16A Object-Oriented Concepts.
OCR A Level F453: High level languages Programming techniques a. identify a variety of programming paradigms (low-level, object- oriented,
Java Programming Fifth Edition Chapter 9 Introduction to Inheritance.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
Tables In COBOL An Introduction
Object-Oriented Design
Object Oriented Programming
JAVA By Waqas.
Objects First with Java A Practical Introduction using BlueJ
Objects, Classes, and Methods (PART 1)
Topic: Python’s building blocks -> Variables, Values, and Types
Objects as a programming concept
objects CIS 421 Kutztown University
Object Oriented Programming
Object Oriented Concepts -I
OBJECT ORIENTED PROGRAMMING overview
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
PRINCIPALES OF OBJECT ORIENTED PROGRAMMING
Section 11.1 Class Variables and Methods
Introduction to Object-oriented Program Design
Object-Oriented Programming
Object-Oriented Programming
Chapter 0 : Introduction to Object Oriented Design
Object-Oriented Programming
CHAPTER 8: USING OBJECTS
C++ Programming ㅎㅎ String OOP Class Constructor & Destructor.
Introduction to Data Structure
Object-Oriented Programming
Basic OOP Concepts and Terms
Review of Previous Lesson
Programming For Big Data
Presentation transcript:

Objects, Classes, and Methods Michael M. Pickard, PhD Dept. of Computer Science Stephen F. Austin State Univ.

Introduction Fundamental OO Concepts in the Real World Fundamental OOP Concepts Understanding of some OO Terms

Fundamental OO Concepts Related to the Real World Class - a category of “things” of some kind For example, the “Automobile” class includes a variety of four-wheeled, mechanized vehicles. Object - one of the “things” in a given class For example, a ‘66 GTO is an object belonging to the class of Automobiles.

Interim Definitions: Abstract data type: a data type together with all the actions that can be performed on that data type. But what is data type?

Interim Definitions: Abstract data type: a data type together with all the actions that can be performed on that data type. But what is data type? One intuitive answer: The interpretation to be applied to a sequence of bits. Another: A group of data items that have the same characteristics, e.g., integers, characters, and so on.

Interim Definitions: Abstract data type: a data type together with all the actions that can be performed on that data type. A class can be thought of as an abstract data type that supports inheritance.

More Fundamental OO Concepts Related to the Real World... A class can also be thought of as a defining a pattern for creating objects... …so that if one creates something according to the pattern, one has a new object of that class. Example: A 2013 Hyundai Accent

OOP Concepts - Object An instantiation of an abstract data type that supports inheritance. In other words, an object is something that is built according to the pattern defined by a class, with the additional property of inheritance.

Inheritance Inheritance: The ability to receive some characteristics from a “parent.”

OOP Concepts - Object When we create something according to the definition of a given class, we say we have created (or instantiated) a new object in that class.

OOP Concepts – Class (1) A class is an abstract data type that supports inheritance. A class can be thought of as a pattern for creating objects.

OOP Concepts - Class (2) A class defines the set of data elements (attributes) that define the objects, and the set of behaviors (methods) that manipulate the object or interact with related objects.

More Basic OOP Concepts. . . In other words, a class . . . can contain data can contain operations on that data (These are called “methods” in Java.)

More Basic OOP Concepts. . . Method declarations executable statements that do something . . . hopefully!

Summary Fundamental OO Concepts as Related to the Real World Basic OO Concepts