Professional Documents
Culture Documents
#1. Introduction to C++
#1. Introduction to C++
Introduction to C++
① History of C++
② Version History of C++
③ comparison with C
④ Introduction to OOP
a
programming
language
•
Created by Danish computer
scientist Bjarne Strole strep
as an extension of the
C
programming language
Bjarne
.
Strom strap
•
when stroustrup
started working in
with respect to
the UN / ✗ Kernel
analyzing
distributed computing .
Stroustmp decided to enhance the
because it was
C was chosen
-
general purpose
-
fast
-
portable
- Widely used
initially it was called C with classes
of Function arguments
type checking ,
same as f- ( void)
f- ( ) is
with classes
reference manual
•
First c
1982)
published (
C++ to a
which converts program
•
C++ Language ( 1985)
virtual function ,
function overloading ,
I 10 stream "
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
(supports polymorphism ,
encapsulation
inheritance
)
,
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
which
Object is
something can
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
running )
Ramesh
} Proper objects
Inn Ferb Mahesh →
Noun
Nilesh
class is a description of an object .
"
is instance of class
object
a
an .
✗ obj ;
obj.aobj.fi 1
fac) ;
obj b
'
:c
⑨ by
History of
-
OOP
development of OOP .
"
OOP to me only messaging
means ,
process and,
"
-
Alan Kay
In Simple words essential
, ingredients
of OOP are
-
Message Passing
-
Encapsulation
-
Dynamic Binding
whatareprogrammmyparadrgms7.paradig.in
= model
Different
programming paradigms are
guidance on
approach to solve a
programming problem .
Differentprogrammingparadigms
-
Procedural Programming
-
Imperative Programming
Declarative Programming
-
-
Parallel Processing Approach
more
many . . .
.
which of the
following is the
(a) Java
(b) C++
(C) Simula
(d) Smalltalk
which of the
following is the
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