1 CMT2050: Object Oriented Programming and Design www.cs.mdx.ac.uk/staffpages/xiaohong/cmt2050 Dr. Xiaohong Gao Room 2C23 Ext. 2252 ( Seminar Week 1) The.

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.
Classes and Object- Oriented... tMyn1 Classes and Object-Oriented Programming The essence of object-oriented programming is that you write programs in.
Chapter 1 Object-Oriented System Development
Introduction To System Analysis and Design
Object Oriented System Development with VB .NET
Wednesday, 10/9/02, Slide #1 CS 106 Intro to CS 1 Wednesday, 10/9/02  QUESTIONS ??  Today:  Discuss HW #02  Discuss test question types  Review 
Visual Basic Introduction IDS 306 from Shelly, Cashman & Repede Microsoft Visual Basic 5: Complete Concepts and Techniques.
 2006 Pearson Education, Inc. All rights reserved Introduction to Classes and Objects.
1 Introduction to C++ Programming Concept Basic C++ C++ Extension from C.
WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science) MCA, MSc[IT], MTech[IT],MPhil (Comp.Sci), PGDCA, ADCA, Dc. Sc. & Engg.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
OBJECT ORIENTED PROGRAMMING IN C++ LECTURE
Introduction to Object-oriented Programming Introduction to Object-oriented Programming CMPS 2143.
Object Oriented Software Development
 2003 Prentice Hall, Inc. All rights reserved. 1 Introduction to Classes and Objects Outline Introduction Classes, Objects, Member Functions and Data.
Introduction to Object-oriented programming and software development Lecture 1.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
BCS 2143 Introduction to Object Oriented and Software Development.
Welcome to OBJECT ORIENTED PROGRAMMIN Date: 10/09/2014 Prepared By Prepared By : VINAY ALEXANDER PGT(CS) KV jhagrakhand.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
Two Approaches to System Development
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 13 Introduction to Classes.
1 COSC3306: Programming Paradigms Lecture 6: Object-Oriented Programming Specifications Haibin Zhu, Ph.D. Computer Science Nipissing University (C) 2003.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
Definition of Object - Oriented Language.. Object-oriented programming (OOP) is a programming language model organized around "objects" rather than "actions"
Chapter 10 Classes and Objects In-Depth. Chapter 10 A class provides the foundation for creating specific objects, each of which shares the general attributes,
Introduction to c++ programming - object oriented programming concepts - Structured Vs OOP. Classes and objects - class definition - Objects - class scope.
Learners Support Publications Object Oriented Programming.
Programming Paradigms Lecturer Hamza Azeem. What is PP ? Revision of Programming concepts learned in CPLB Learning how to perform “Object-Oriented Programming”
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (1/2)
1.
Basic Concepts of Object Orientation Object-Oriented Analysis CIM2566 Bavy LI.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Introduction to Object Oriented Programming (OOP) Object Oriented programming is method of programming.
WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science)
Introduction to OOP CPS235: Introduction.
1 CSE Programming in C++. 2 Overview Sign roster list Syllabus and Course Policies Introduction to C++ About Lab 1 Fill Questionnaire.
Introduction to Computers Lesson 13A. home Computer Program A set of instructions or statements, also called code, to be carried out by the computer’s.
Chapter 2 Principles of Programming and Software Engineering.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Appendix A Object-Oriented Analysis and Design A.1.
An Introduction to Programming with C++ Fifth Edition Chapter 14 Classes and Objects.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (2/2)
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (1/2)
Welcome to OBJECT ORIENTED PROGRAMMING Prepared By Prepared By : VINAY ALEXANDER PGT(CS) KV jhagrakhand.
Chapter 1: Introduction to Computers and Programming.
CPS120: Introduction to Computer Science Lecture 16A Object-Oriented Concepts.
Classes in C++ By Ms Nashandi. Placing a class in a separate file for Reusability When building an object C++ Program, it is customary to define reusable.
Computer Programming II Lecture 5. Introduction to Object Oriented Programming (OOP) - There are two common programming methods : procedural programming.
Introduction to OO Programming Andy Wang Object Oriented Programming in C++ COP 3330.
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING
Chapter 1: Introduction to Systems Analysis and Design
CHAPTER 5 GENERAL OOP CONCEPTS.
Sections Basic Concepts of Programming
GENERAL OOPs CONCEPTS.
Objectives State the reasons for the complexity involved in the development of software Define the following terms Objects Classes Messages Methods Explain.
OOP What is problem? Solution? OOP
Review: Two Programming Paradigms
Object Oriented Concepts -I
CS212: Object Oriented Analysis and Design
Chapter 1: Introduction to Systems Analysis and Design
COP 3330 Object-oriented Programming in C++
What Is Good Software(Program)?
CPS120: Introduction to Computer Science
Agenda Software development (SD) & Software development methodologies (SDM) Orthogonal views of the software OOSD Methodology Why an Object Orientation?
Object Oriented Programming (OOP)- Assist. Prof. Dr
Chapter 1: Introduction to Systems Analysis and Design
CPS125.
Presentation transcript:

1 CMT2050: Object Oriented Programming and Design Dr. Xiaohong Gao Room 2C23 Ext ( Seminar Week 1) The Programming Cycle

2 1. Define objects An object is an entity with a well-defined boundary and identity that encapsulates both state and behaviour. State is represented by attributes and relationships. Behaviour is represented by operations, methods, and state machines. An object is an instance of a class.

3 2. Explain the difference between produre programming and oop.  Programs ---- consist of modules, which are parts that can be designed, coded, and tested separately and then assembled.  Procedural Programming (such as C language) ---- the modules are procedures.  In C, a function is a procedure.  C language is a procedural language in which a program’s modules are its functions.  Designing a procedural program is known as top-down design.

4  OOP i s another way of thinking about programming.  The focus is on the relationship between data and tasks, rather than on a program’s tasks.  A program contains objects that respond to messages sent to them.  A message (or function call) is simply a request for the object to do something.  In C++, you create objects that contain data and actions or behaviors that the object is capable of performing.  These actions, called methods (or member functions), are implemented by writing functions that are part of object itself.

5 3. The Programming Cycle The Debug Cycle The inside of compilation The role of the pre-processor

6 Debug cycle

7 The inside of compilation

8

9 The role of pre-processor

10 pre-processor files are header files: pre-processor directives including #include header files are usually.h files a header file may contain Þ data structure Þenum definitions Þ prototypes of functions