C++ Interview Question and Answers : 4
Posted by Pritam |  at 22:00
| 16. | What are the few advantages of Inline function? |
|
- It offers an improved macro facility.
- By using the inline functions, the user can split a large function with many nested modules of statement blocks into many small inline functions.
|
| 17. | What is copy constructor? |
| Copy constructor is a constructor function with the same name as the class and used to make deep copy of objects. |
| 18. | What is default constructor? |
| A default constructor is a constructor that either has no parameters, or if it has parameters, all the parameters have default values. |
| 19. | What is a scope resolution operator? |
| The scope resolution operator permits a program to reference an identifier in the global scope that has been hidden by another identifier with the same name in the local scope. |
| 20. | What is the difference between Object and Instance? |
|
- An instance of a user-defined type is called an object. We can instantiate many objects from one class.
- An object is an instance of a class.
|
<<<PREV NEXT>>>
About the Author
Write admin description here..
Get Updates
Subscribe to our e-mail newsletter to receive updates.
0 comments:
We Will Appreciate Your Comment As Complement