Вы находитесь на странице: 1из 12

 C++is a superset of the c programming

language that supports both procedural and


object oriented programming (oop).

C also does not enable on class to declare as


a subclass of another
 These features are added to the c language
by Dr.Bjarne Stroustrup at At & T
STRENGTHS OF C++
 C++ is a one of the most popular programming
language. This is because of its various strengths.

FLEXIBLE
 It is being used to develop programs for almost
everything, from operating system to spreadsheets
and database management systems. It is easy to
understand and develop programs.

PORTABLE
 The main reason for the popularity of C++ is
potable.A program written in C++ can be complied
in almost all the available C++ compliers and can
be executed on any hardware and software
platform.
 Object-oriented programming is a different
way thinking about programming.
 In procedural programming, you think about
functions and the execution through these
functions.
 An object is a self contained entity that
describes not only certain data but the
procedures to manipulate the data
 An object-oriented programming gives more
emphasis on data, provides extensibility and
models real world problems very well.
ENCAPSULATION

INHERITENCE

POLYMORPHISM

THE THREE IMPORTANT


OOP PRINCIPLES
 Encapsulationis the most fundamental
concepts of Oops. It is the way of combining
both data and function and operate on that
data under a single unit.

 The wrapping up of data and function into


single unit is known as Encapsulation.
 Inheritanceis the capability of one class of
thing to inherit capabilities or properties
from another class.

Vehicles(base properties)

Automobiles(Derived properties)

Car(Derived properties)
 Polymorphism is the ability for a message or
data to be processed in more than one form.
 Thecombination of data and methods make
up an object.

Object = Data + Methods

Object is an identifiable entity with some


characteristic and behavor.
A class is group of object that shares
common properties and relationship.

Examples: Class Person


AGE
NAME Attributes
HEIGHT

Walking()
Speaking() Behaviour
Eating()
 Every C++ program must start with
“#include” statement, which is a command
for including specific C++ libraries.
 Every C++ program must have one main ()
function statement. Remember there must
be only one main() function statement in a
program.
 Every C++ statement in a C++ program must
end with a semicolon”;”
 Include comments in the program which must
appear within ‘//’ or /* and */.
RAGHAVENDRA.V
X-B

Вам также может понравиться