C++ Programming Question and Answers

56. What do you mean by inheritance?
 
  • Inheritance is the process of creating new classes, called derived classes, from existing classes or base classes.
  • The derived class inherits all the capabilities of the base class, but can add embellishments and refinements of its own.
 
Your Name Your Email-ID
Your Answer
57. What is an object?
  Object is a software bundle of variables and related methods. Objects have state and behavior.
 
Your Name Your Email-ID
Your Answer
58. What is type cast?
  Type cast refers to the process of changing the data type of the value stored in a variable.
 
Your Name Your Email-ID
Your Answer
59. List out user defined data types?
  User defined data types are
  • Structure
  • Union
  • Class and
  • Enumeration
 
Your Name Your Email-ID
Your Answer
60. What are keywords in C++?
 
  • Keywords have special meaning to the language computer.
  • These are reserved words for special purpose.
  • These words cannot be used as normal identifiers.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 12 of 15