C++ is an extension to C
language and was developed by Bjarne stroustrup at bell labs.
C++ is an Object Oriented Programming language but
not purely Object Oriented because we can write c++ programs using both
procedure and object oriented language.
C++ is a middle -level language,as it uses both high and low level language features.
C++ supports object-oriented,procedural and generic programming.
History of c++
C++ is a middle -level language,as it uses both high and low level language features.
C++ supports object-oriented,procedural and generic programming.
History of c++
C++ programming language was developed in 1980 by Bjarne Stroustrup
at bell laboratories of AT&T (American Telephone & Telegraph) located in U.S.A.
Bjarne Stroustrup is known as the inventor (founder) of C++ language.
C++ programming is superset of C.
Object-Oriented Programming (OOPs)
C++ supports the
object-oriented programming. With four major principles
of object-oriented programming systems are:
Inheritance
Polymorphism
Encapsulation
Abstraction
Uses of C++
Polymorphism
Encapsulation
Abstraction
Uses of C++
It is used to create window and client server
application.
It is used to create general system software,
drivers for various computer devices, software for servers and software for
specific applications. We can create secured and
robust application using c++.
It is widely used in the creation of video
games.
Difference
between C vs C++
C
C supports procedural oriented programming language.
C follows the top-down approach.
scanf() and printf() are used for input/output in C.
Operator overloading is not possible in C.
C programs are divided into procedures and modules.
Data is less secured in C.
It does not support exception handling.
C++
It supports both procedural and object oriented programming language.
C++ follows the bottom-up approach.
cin and cout are used for
input/output in C++.
Operator overloading is possible in C++.
C++ programs are divided into functions and classes.
Data is more secured in C++ because we can
use access modifiers for class members to make it inaccessible for outside users
(private, public, protected).
It supports exception handling.
No comments:
Post a Comment