Unit-2 C++ Basics-Lesson 1
Unit-2 C++ Basics-Lesson 1
UNIT
2 C++
BASICS
1. C++ fully supports object-oriented programming, including the four pillars of object-oriented
development.
LESSON 1:
An Overview of C++
OBJECTIVES:
At the end of the lesson, students will be able to:
C++ fully supports object-oriented programming, which includes the four pillars of
object-oriented development: encapsulation, abstraction/data hiding, inheritance, and
polymorphism.
For example, once you send an email to someone, you click send, and you get
the success message. What happens when you click send, how data is
transmitted over the network to the recipient is hidden from you (because it is
irrelevant to you).
Standard Libraries
▪ The core language is giving all the building blocks, including variables, data
types, and literals, etc.
▪ The C++ Standard Library is giving a rich set of functions operating files,
strings, etc.
▪ The Standard Template Library (STL) provides a rich set of methods
operating data structures, etc.
ANSI is the American member of ISO, the international standards organization. Since
1998, C++ has an international standard, a sort of a treaty between compiler vendors
from all around the world on what language features they all agree to implement. C++,
as defined by that standard, is known as ISO C++. The ANSI standard is an aim to
ensure that C++ is portable -- that code you write or compose for Microsoft compiler
will be compiled without errors, using a compiler on Mac, UNIX, Windows box, or an
Alpha.
Use of C++
▪ C++ is highly used to write device drivers and other software that rely on direct
manipulation of hardware under real-time constraints.
▪ C++ is broadly used for teaching and research because it is clean enough to
successfully teach basic concepts.