1) What is C++?
C++ is an object oriented programming language. It was developed by Bjame Stroustrup in 1983 at the AT & T Bell Laboratories, Now Jersey, USA. It is basically a super set of C, which provided low level features.
2) What are the basic concepts of OOP?
- Objects
- Classes
- Data Abstraction and Encapsulation
- Inheritance
- Polymorphism
- Dynamic Binding
- Message Passing
3) What is oops?
An object oriented program is a collection of discrete objects, which are self contained collections of both data structures and functions that interact with other objects.
4) What are the characteristic of C++ language?
- It has the following characteristics :
- Reduces complexity while solving problems
- Correctness of results is ensured
- Affordable in terms of hardware and other resources
- Easier and cheaper for integrating existing software facilities and libraries
- Portable i.e. can be used on different types of computers with little or no change in the programs.
5) What are the types of character set?
- We have two character sets in C++. These are :
- Source characters
- Escape sequences /Execution characters
6) What are the elements of OBJECT ORIENTED PROGRAMMING?
- The main concepts of object oriented programming are :
- Data Abstraction
- Encapsulation
- Inheritance
- Polymorphism
7) What are the components of a class?
A class consists of two components data members and methods.
8) What are methods?
Methods are functions associated with the class. They are able to access even private data members.
9) What is the significance of class keyword in C++/Java?
The keyword class (in C++ and Java) specifies an Abstract Data Type (ADT). ADTs expose operations that provide a higher level functionality, and the lower level implementation details are isolated and hidden from the users of the class.
10) What is the difference between source and escape sequences?
The source text is created with the help of source characters.
These are interpreted at execution time. The values of these characters are implementation defined.