Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.3 KB

importantcpp.md

File metadata and controls

45 lines (26 loc) · 1.3 KB

What is the full form of OOPS?

  • Object Oriented Programming System.


What is a class?

  • Class is a blue print which reflects the entities attributes and actions. Technically defining a class is designing an user defined data type.


What is an object?

An instance of the class is called as object.

  • List the types of inheritance supported in C++. Single, Multilevel, Multiple, Hierarchical and Hybrid.


What is encapsulation?

  • The process of binding the data and the functions acting on the data together in an entity (class) called as encapsulation.


What is abstraction?

  • Abstraction refers to hiding the internal implementation and exhibiting only the necessary details.


What is inheritance?

  • Inheritance is the process of acquiring the properties of the exiting class into the new class. The existing class is called as base/parent class and the inherited class is called as derived/child class.


Explain the purpose of the keyword volatile.

  • Declaring a variable volatile directs the compiler that the variable can be changed externally. Hence avoiding compiler optimization on the variable reference.