0% found this document useful (0 votes)
43 views

C++ Basics

C++ is an object-oriented programming language created by Bjarne Stroustrup as an extension of C. It became popular for enterprise and commercial applications due to Microsoft's Visual C++. Some key concepts of object-oriented programming include objects, classes, data abstraction, encapsulation, inheritance, polymorphism, dynamic binding, and message passing. Inheritance allows new classes to acquire properties of existing classes without rewriting code from scratch. Polymorphism allows the same function name to exhibit different behaviors. Encapsulation wraps data and functions into a single unit called a class, containing and hiding internal details.

Uploaded by

santosh kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

C++ Basics

C++ is an object-oriented programming language created by Bjarne Stroustrup as an extension of C. It became popular for enterprise and commercial applications due to Microsoft's Visual C++. Some key concepts of object-oriented programming include objects, classes, data abstraction, encapsulation, inheritance, polymorphism, dynamic binding, and message passing. Inheritance allows new classes to acquire properties of existing classes without rewriting code from scratch. Polymorphism allows the same function name to exhibit different behaviors. Encapsulation wraps data and functions into a single unit called a class, containing and hiding internal details.

Uploaded by

santosh kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

What is C++
C++ is created by Bjarne Stroustrup of AT&T Bell Labs as an extension of C, C++ is an
object-oriented computer language used in the development of enterprise and commercial
applications. Microsofts Visual C++ became the premier language of choice among
developers and programmers.

2. What are the basic concepts of object oriented programming?


It is necessary to understand some of the concepts used extensively in object oriented
programming.These include

Objects
Classes
Data abstraction and encapsulation
Inheritance
Polymorphism
Dynamic Binding
Message passing

3. Define inheritance?
The mechanism of deriving a new class (derived) from an old class (base class) is called
inheritance. It allows the extension and reuse of existing code without having to rewrite the
code from scratch. Inheritance is the process by which objects of one class acquire properties
of objects of another class.

4. Define polymorphism?
Polymorphism means one name, multiple forms. It allows us to have more than one function
with the same name in a program.It allows us to have overloading of operators so that an
operation can exhibit different behaviours in different instances.

5. What is encapsulation?
The wrapping up of data and functions into a single unit (called class) is known as
encapsulation. Encapsulation containing and hiding information about an object, such as
internal data structures and code.
ddddd

You might also like