Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

A job ready bootcamp in C++, DSA and IOT

Introduction to C++

Saurabh Shukla (MySirG)


-
Agenda
-

① History of C++
② Version History of C++
③ comparison with C
④ Introduction to OOP

⑤ Key Principles of OOP


C++
⑥ Sofware development using
Historyaft
C++ is
general

a
programming
language

Created by Danish computer
scientist Bjarne Strole strep
as an extension of the
C
programming language
Bjarne
.

Strom strap

Developed at AT&T 's Bell Labs


, ,
USA

ranked 4ᵗʰ T 10 BE index


-
C++ on
Strenstrup 's PHD thesis work he
During features that were
,

found Simula had

helpful for large software development


very
too slow for
but the
language was
fast but
while BCPL was
practical use ,

too low level to be suitable for large


software development .

when stroustrup
started working in

he had the problem of


AT&T 's bell labs ,

with respect to
the UN / ✗ Kernel
analyzing
distributed computing .
Stroustmp decided to enhance the

with Simula like features


C Language
.

because it was
C was chosen
-

general purpose
-
fast
-
portable
- Widely used
initially it was called C with classes

C++ name was given by Rick Mascilti


and was first used in december 1983 .

Before this name ,


it was known as

C with classes or new C


versiontlistoryofc-t.co
with classes (197-9) -
First implementation .

classes member functions ,


derived classes
,
,
control , friend
public and private access
,

of Function arguments
type checking ,

inline functions overloaded


,
assignment
constructor destructors
operator ,
, ,

same as f- ( void)
f- ( ) is
with classes
reference manual

First c

1982)
published (

C. Front was a compiler written by Straustrip


program ( 1985)

C++ to a
which converts program

C++ Language ( 1985)
virtual function ,
function overloading ,

operator overloading references ,


.

new and delete operators const ,

keyword scope resolution operator


,
,

I 10 stream "

First programming Language


"

• book The C++

Stronstmp
by Bjarne
was published ,
written

( 1985)

GCC ( 1987 )
• C++ support in

C Front 2.0 ( 1989 )
to members
multiple inheritance ,
pointers ,

protected access
control , type safe linkage
-

abstract class ,
static ,
const
qualified
member functions , endl .


1990
namespaces , exception handling .

nested class ,
templates


ANSI C++ committee founded ( 1990)
a ISO C++ committee founded ( 1991)


C. Front 3.0 ( 199 1)
( 1992)

STL implemented in C++
• C++ 98 ( 1998 )
iterators
boot algorithms
,
in STL , ,

function objects

Ct -103 ( 2003)
major bug fixes

• C++ 11 ( 2011)


C++ 14 ( 2014)

C++ 17 (2017)

C++ 20 ( 2020)
canpariscnwithcc-i-i.es
a
language
superset of c

C is procedure oriented C++ is object-oriented


programming language as well as procedure
oriented .

(supports polymorphism ,

encapsulation
inheritance
)
,

No concept of exception C++ supports exception


handling handling
no type safe linking type safe linking
Top down approach Bottom up approach
Procedure Oriented
-
Programming

Emphasis is on the procedures .

Any software project can be seen as

a list of tasks .

procedure instructions )
• Some ( sequence of
is required to accomplish a
given
task

Example -

Banking system .
Introductiontooop
Object Oriented Programming is a

popular programming paradigm


based on the concept of Objects .

which
Object is
something can

contain data and code


data in the form of fields (or attributes ,

or properties)
code in the form of procedures (or methods)
%
÷÷;::: Real world entities are


. .

class is description
¥ a

of an object
class =
Category
running C) : ← verb

Person → common class


Ramesh
"°""

running )
Ramesh

} Proper objects
Inn Ferb Mahesh →
Noun
Nilesh
class is a description of an object .

variables and functions


class is
group✗of
a
, b. C

"

is instance of class
object
a
an .

✗ obj ;

obj.aobj.fi 1

fac) ;
obj b
'

:c
⑨ by
History of
-
OOP

The term object oriented programming


made its first appearance at MIT

in the late 1950s and early 1960s .

the second oldest level


LISP is high
programming language (after FORTRAN)
which uses term
object with properties
Simula introduced important concepts that are

essential part of object oriented


today an

such as class and object


inheritance
programming
, ,

and dynamic binding

Alan Kay who alsodeveloped Smalltalk


implemented Object Oriented features
has received the
major credit on

development of OOP .
"
OOP to me only messaging
means ,

retention and protection


local
and hiding of state -

process and,

"

extreme date binding af all things .

-
Alan Kay
In Simple words essential
, ingredients
of OOP are
-

Message Passing
-
Encapsulation
-

Dynamic Binding
whatareprogrammmyparadrgms7.paradig.in
= model

Programming Paradigms are specific


code particular techniques
with
organization
to implement programming solutions .

Different
programming paradigms are

guidance on
approach to solve a

programming problem .
Differentprogrammingparadigms
-
Procedural Programming
-

Object Oriented Programming


-

Imperative Programming
Declarative Programming
-

-
Parallel Processing Approach
more
many . . .
.
which of the
following is the

first object oriented


Programming
language ?

(a) Java

(b) C++

(C) Simula

(d) Smalltalk
which of the
following is the

first purely object oriented

programming language ?
Cal Java

C) C++

Simula
(d) Smalltalk
keypoinciplesof.CO#

Encapsulation
Data
Hiding

• Abstraction

Inheritance


Polymorphism
softwared velopmcnt-usng-i bwild.ex py.CI?er me@
compiler

Linker

compiler in

gcc

Compiler in C++ → g -1-1

You might also like