1. Getter/Setter: To use or not to use?

Ans: http://java.dzone.com/articles/getter-setter-use-or-not-use-0

2. Why use destructors?

3. Should destructors be public or private?

4. What are templates in C++ and generics in Java?

5. How is garbage collection done in C++? Explain auto_ptr and smart pointers?

 

Advertisements