C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?

Slides:



Advertisements
Similar presentations
C++ Language Fundamentals. 2 Contents 1. Introduction to C++ 2. Basic syntax rules 3. Declaring and using variables.
Advertisements

Bjarne Stroustrup started work on C with Classes in 1979 at Bell Labs. In 1983 it was renamed C++.
C++ Programming Languages
Portability and Safety Mahdi Milani Fard Dec, 2006 Java.
Inheritance and Class Hierarchies Chapter 3. Chapter 3: Inheritance and Class Hierarchies2 Chapter Objectives To understand inheritance and how it facilitates.
OOP in Java Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
C#.NET C# language. C# A modern, general-purpose object-oriented language Part of the.NET family of languages ECMA standard Based on C and C++
Guide To UNIX Using Linux Third Edition
C++ fundamentals.
Session-02. Objective In this session you will learn : What is Class Loader ? What is Byte Code Verifier? JIT & JAVA API Features of Java Java Environment.
Lecture 1: Overview of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++ Designed.
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
Comparison of OO Programming Languages © Jason Voegele, 2003.
Programming Languages and Paradigms Object-Oriented Programming.
CSM-Java Programming-I Spring,2005 Introduction to Objects and Classes Lesson - 1.
C++ Object Oriented 1. Class and Object The main purpose of C++ programming is to add object orientation to the C programming language and classes are.
“is a”  Define a new class DerivedClass which extends BaseClass class BaseClass { // class contents } class DerivedClass : BaseClass { // class.
Bjarne Stroustrup began work on "C with Classes" in The idea of creating a new language originated from Stroustrup's experience in programming for.
An Object-Oriented Approach to Programming Logic and Design
EE4E. C++ Programming Lecture 1 From C to C++. Contents Introduction Introduction Variables Variables Pointers and references Pointers and references.
C++
Why Java? A brief introduction to Java and its features Prepared by Mithat Konar.
1 Chapter 10: Data Abstraction and Object Orientation Aaron Bloomfield CS 415 Fall 2005.
University of Houston-Clear Lake Proprietary© 1997 Evolution of Programming Languages Basic cycle of improvement –Experience software difficulties –Theory.
Introduction and Features of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++
Introduction to C++ Programming Language
Lecture :2 1.  DEFENTION : Java is a programming language expressly designed for use in the distributed environment of the Internet. It was designed.
Guided Notes Ch. 9 ADT and Modules Ch. 10 Object-Oriented Programming PHP support for OOP and Assignment 4 Term project proposal C++ and Java Designer.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 13 Introduction to Classes.
1 Life Cycle of Software Specification Design –Risk Analysis –Verification Coding Testing –Refining –Production Maintenance.
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
C++ History C++ was designed at AT&T Bell Labs by Bjarne Stroustrup in the early 80's Based on the ‘C’ programming language C++ language standardised in.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
Prepared by: Elsy Torres Shajida Berry Siobhan Westby.
Data Structures Using C++ 2E1 Inheritance An “is-a” relationship –Example: “every employee is a person” Allows new class creation from existing classes.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
C++ Programming Basic Learning Prepared By The Smartpath Information systems
Chapter 6 Introduction to Defining Classes. Objectives: Design and implement a simple class from user requirements. Organize a program in terms of a view.
Real Time Programming Language. Intro A programming language represents the nexus of design and structure. But misuse of the programming language can.
Introduction to c++ programming - object oriented programming concepts - Structured Vs OOP. Classes and objects - class definition - Objects - class scope.
Summing Up Object Oriented Design. Four Major Components: Abstraction modeling real-life entities by essential information only Encapsulation clustering.
Chapter 3 - Language Design Principles
C++ The reason why it is still in use. Table of Contents Disadvantages Disadvantages Advantages Advantages Compare with object-oriented programming language.
Object-Oriented Programming. Objectives Distinguish between object-oriented and procedure-oriented design. Define the terms class and object. Distinguish.
ECE 264 Object-Oriented Software Development Instructor: Dr. Honggang Wang Spring 2013 Lecture 1: Introduction.
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.
JAVA INTRODUCTION. What is Java? 1. Java is a Pure Object – Oriented language 2. Java is developing by existing languages like C and C++. How Java Differs.
JAVA Ekapap Julnonyang When it was implemented? Developed by Sun Microsystems. The first public implementation was Java 1.0 in 1995 The language.
Introduction To OOP 1.0 Fundamentals Of Java Programming Language 2.0 Exception Handling 3.0 Classes, Inheritance And Polymorphism © 2011 | PN AZRINA.
Inheritance and Class Hierarchies Chapter 3. Chapter 3: Inheritance and Class Hierarchies2 Chapter Objectives To understand inheritance and how it facilitates.
Inheritance and Class Hierarchies Chapter 3. Chapter Objectives  To understand inheritance and how it facilitates code reuse  To understand how Java.
Classes, Interfaces and Packages
Lecture 2: Review of Object Orientation. © Lethbridge/La ganière 2005 Chapter 2: Review of Object Orientation What is Object Orientation? Procedural.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Chapter 15 - C++ As A "Better C"
Object Oriented Programming in
Java Interview Questions
Programming Paradigms
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Introduction Enosis Learning.
Object-Orientated Programming
C++ History C++ was designed at AT&T Bell Labs by Bjarne Stroustrup in the early 80's Based on the ‘C’ programming language C++ language standardised in.
Object Oriented Analysis and Design
Introduction Enosis Learning.
Ada – 1983 History’s largest design effort
More Object-Oriented Programming
CSE Object Oriented Programing
Java History, Editions, Version Features
C++ Object Oriented 1.
Presentation transcript:

C++ Programming

Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation? Encapsulation Java and C++ Advantages and Disadvantages The future of C++

History The name C++ was created by Rick Mascitti and was first used in December of Stroustrup worked on “C” in Wanted to develop a language to enhance software development. He chose “C” because it is general-purpose, fast and portable. He later enhanced “C” and it became C++.

What is C++ C++ programming is a programming language designed to making programming more enjoyable for the serious programmer. In the 1990s it became one of the most popular programming languages in the world.

Development C++, designed by Bell Lab’s Bjarne Stroustup, was developed as an enhancement to the C programming language. Enhancements Included the addition of classes followed by many features such as: –Virtual functions –Operator overloading –Multiple Inheritance –Templates –Exception handling

Standardized C++ In 1998 C++ Programming became standardized It consists of Two parts: –Core Language - pure programming language, generally organized into statement blocks; the core language is often developed into libraries, which are then used during programming. –Standard Library - a collection of classes and functions; which are written in the core language. The Standard Library includes functions for data conversion, input, output, string manipulation, and other procedures.

Features of C++ Features of C++ include an improved version of C: –Function casts –New / Delete –Default arguments –Function overloading –Name spaces –Templates

Object Oriented Features of C++ C++ introduces object oriented features to C. Object orientation is a computer programming paradigm that emphasizes on: Objects - packaging data and functionality together into units within a running computer program. Abstraction - combining multiple smaller operations into a single unit that can be referred to by name Polymorphism - using the same name to invoke different operations on objects of different data types. Inheritence - defining objects data types as extensions and/or restrictions of other object data types.

Encapsulation And What It Does C++ allows all members of a class to be declared public, private or protected. Encapsulation describes- leaving out some details of implementation on purpose from the public Public member - Member of the class that will be accessible to every other class. Private - will only be accessible within that class. Protected - will only be accessible to the class in which it is in and the classes that inherit said class

Java and C++ Java is considered a much simpler and easy to use object-oriented programming language when compared to the popular programming language, C++. Java replaced the complexity of multiple inheritance in C++ with a simple structure called interface, and also has eliminated the use of pointers. Java uses automatic memory allocation and garbage collection. C++ requires the programmer to allocate memory and to collect garbage

Advantages of C++ C++ Has compiler support and debuggers. C++ Has a large selection of literature One class can have more than one base class, which is referred to as Polymorphism.

Disadvantages of C++ Not available on OS9 C++ is difficult to learn and can often become confusing. Extensive use on some features such as, Operator overloading, Function overloading, and virtual functions can make C++ unreadable. Executables are large (500kb) compared to OIC (150kb).

Future Development C++ continues to evolve to meet future requirements. C++ will capitalize on its multi-paradigm nature more. Name decoration and making object code produced by different compilers incompatible are still lacking in C++ standard.

Ports to platforms such as Solaris and Linux. More use of “Inline Functions”.