Discussion
Which of the following is NOT a feature of C++ ?
Answer: D
Automatic garbage collection is not a feature of C++.
In C++, memory obtained with new must be released with delete, either by the programmer or automatically through destructors and smart pointers such as unique_ptr and shared_ptr (the RAII idiom). There is no run-time garbage collector that finds and frees unreachable objects, as there is in Java, C# and Python.
Inheritance, polymorphism and encapsulation are three of the pillars of object-oriented programming, and C++ supports all of them through classes, virtual functions and access specifiers.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development