Explain RAII (Resource Acquisition Is Initialization).
Answer Posted / hr@tgksolutions.com
• A programming idiom where resource allocation is tied to object lifetime. Destructors release resources.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do we implement inheritance in c++?
What is diamond problem in c++?
What are the three forms of cin.get() and what are their differences?
What is ios class in c++?
What is the role of C++ shorthand's?
What are default parameters? How are they evaluated in c++ function?
How does the copy constructor differ from the assignment operator (=)?
What are guid?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
What are destructors?
What is the difference between mutex and binary semaphore?
What is a memory leak c++?
What is the difference between a type-specific template friend class and a general template friend class?
What is a namespace in c++?
Do class declarations end with a semicolon? Do class method definitions?