C++, OBJECT ORIENTED PROGRAMMING

Slides:



Advertisements
Similar presentations
Question Bank. Explain the syntax of if else statement? Define Union Define global and local variables with example Concept of recursion with example.
Advertisements

Overview of programming in C C is a fast, efficient, flexible programming language Paradigm: C is procedural (like Fortran, Pascal), not object oriented.
Introduction to Programming Lecture 39. Copy Constructor.
Internet Application Development tMyn1 INTERNET APPLICATION DEVELOPMENT Timo Mynttinen Mikkelin University of Applied Sciences.
COMP1180 Review Date: 4 March, 2009 Time: 10:30am - 12:20pm Venue: –CS students -- FSC801C and FSC801D –IS and other students -- OEE1017 Remarks: – 1)
Operator Overloading in C++ Systems Programming. Systems Programming: Operator Overloading 22   Fundamentals of Operator Overloading   Restrictions.
Review for midterm exam Dilshad M. Shahid Spring NYU.
CS-341 Dick Steflik Introduction. C++ General purpose programming language A superset of C (except for minor details) provides new flexible ways for defining.
Operator Overloading in C++
Review of C++ Programming Part II Sheng-Fang Huang.
Differences between C# and C++ Dr. Catherine Stringfellow Dr. Stewart Carpenter.
Java ProgrammingtMyn1 Java Programming Timo Mynttinen Mikkeli University of Applied Sciences.
CIS-165 C++ Programming I CIS-165 C++ Programming I Bergen Community College Prof. Faisal Aljamal.
Week 14 - Monday.  What did we talk about last time?  Introduction to C++  Input and output  Functions  Overloadable  Default parameters  Pass.
CompSci 100E 2.1 Java Basics - Expressions  Literals  A literal is a constant value also called a self-defining term  Possibilities: o Object: null,
Chapters 1-5 Review C++ Class. Chapter 1 – the big picture Objects Class Inheritance Reusability Polymorphism and Overloading.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To introduce the structure, union, and enumerated types ❏ To use the type definition.
CS 376b Introduction to Computer Vision 01 / 23 / 2008 Instructor: Michael Eckmann.
CS-1030 Dr. Mark L. Hornick 1 Basic C++ State the difference between a function/class declaration and a function/class definition. Explain the purpose.
1.Which of the following statements is correct?
CSC 143A 1 CSC 143 Introduction to C++ [Appendix A]
Spring 2009 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 8.
EEL 3801 C++ as an Enhancement of C. EEL 3801 – Lotzi Bölöni Comments  Can be done with // at the start of the commented line.  The end-of-line terminates.
Lecturer: Nguyen Thi Hien Software Engineering Department Home page: hienngong.wordpress.com Chapter 2: Language C++
C# Fundamentals An Introduction. Before we begin How to get started writing C# – Quick tour of the dev. Environment – The current C# version is 5.0 –
CS 1428 Final Exam Review. Exam Format 200 Total Points – 60 Points Writing Programs – 45 Points Tracing Algorithms and determining results – 20 Points.
Object Oriented Programming Lecture 2: BallWorld.
Introduction to C++ programming Recap- session 1 Structure of C++ program Keywords Operators – Arithmetic – Relational – Logical Data types Classes and.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
C++ LANGUAGE MULTIPLE CHOICE QUESTION SET-3
Outcome based Learning Objectives
The C++ Data Types Fundamental Data Types
Pointers and Dynamic Arrays
Introduction to Computers Computer Generations
Chapter 12 Enumerated, Structure, and Union Types Objectives
CS 215 Final Review Ismail abumuhfouz Fall 2014.
A bit of C programming Lecture 3 Uli Raich.
Operator Overloading; String and Array Objects
Introduction to C++ Systems Programming.
Representation, Syntax, Paradigms, Types
Test Review Computer Science History
Introduction to C++.
BY GAWARE S.R. COMPUTER SCI. DEPARTMENT
Object-Orientated Programming
TMC 1414 Introduction to Programming
Lecture 6 C++ Programming
Using Arrays in C Only fixed-length arrays can be initialized when they are defined. Variable length arrays must be initialized by inputting or assigning.
Introduction to Programming
Operator Overloading; String and Array Objects
Constant pointers and pointers to constants
Operator Overloading; String and Array Objects
Representation, Syntax, Paradigms, Types
CS 1428 Final Exam Review.
Constructors and destructors
Representation, Syntax, Paradigms, Types
CS 1428 Final Exam Review.
C++ Programming ㅎㅎ String OOP Class Constructor & Destructor.
CS150 Introduction to Computer Science 1
Representation, Syntax, Paradigms, Types
CIS 199 Final Review.
CS150 Introduction to Computer Science 1
Introduction to C Programming
Fundamental Programming
CS150 Introduction to Computer Science 1
Operator Overloading; String and Array Objects
Chapter 9: Pointers and String
Introduction to Programming
Today’s Objectives 28-Jun-2006 Announcements
C Language B. DHIVYA 17PCA140 II MCA.
SPL – PS2 C++ Memory Handling.
Presentation transcript:

C++, OBJECT ORIENTED PROGRAMMING Timo Mynttinen Mikkeli University of Applied Sciences C++ tMyn

OBJECT ORIENTED PROGRAMMING INTRODUCTION TO FUNDAMENTALS A Simple C++ Program Characters and Character Sets BASIC DATA TYPES Arithmetics with Integers Integer Variables The Assignment Operator The const Keyword C++ tMyn

BASIC INPUT AND OUTPUT OPERATIONS Floating Point Values Variables of Type char Data Type Conversion and Casting Enumerated Data Types The typedef Keyword The Lifetime of a Variable Precedence and Associativity BASIC INPUT AND OUTPUT OPERATIONS C++ tMyn

CHOICES AND DECISION-MAKING Comparing Data Values The if Statement The if-else Statement Logical Operators The switch Statement Understanding Loops The while Loop The do-while Loop The for Loop Skipping Loop Iterations C++ tMyn

ARRAYS AND STRINGS Using an Array Arrays of Characters Multidimensional Arrays The string Type C++ tMyn

THE FUNDAMENTALS OF USING FUNCTIONS POINTERS Using Pointers Initializing Pointers to Type char Constant Pointers and Pointers to Constants Pointers and Arrays Dynamic Memory Allocation THE FUNDAMENTALS OF USING FUNCTIONS Why to Partition the Program Function Prototype Function Call Function Definition Passing Arguments to a Function Returning Values from a Function C++ tMyn

CREATING OWN DATA TYPES Understanding Structures Accessing the Members of a Structure Variable Using Pointers with a Structure CLASSES Classes and Object-Oriented Programming Defining a Class Constructors Class Operations C++ tMyn

INTRODUCTION TO INHERITANCE Basic Concepts Inheritance in Classes Access Control Under Inheritance The Access Level of Inherited Class Members Constructor Operation in a Derived Class VIRTUAL FUNCTIONS AND POLYMORPHISM Understanding Polymorphism Virtual Functions C++ tMyn

EXCEPTION HANDLING FILE STREAMS Handling Errors Basic Concepts Writing to a File Reading from a File C++ tMyn