faq
C++ faq’s and interview Questions – 3
7. How do I refer to a name of class or function that is defined within a namespace?Ans: There are two ways in which we can refer to a name of class or function that is defined within a namespace:Using scope resolution operator through the using keyword.This is shown in following example:namespace name1{class sample1{ // [...]
Read Full Post | Make a Comment ( None so far )C++ faq’s and interview Questions – 2
1. Can we declare a static function as virtual?Ans: No. The virtual function mechanism is used on the specific object that determines which virtual function to call. Since the static functions are not any way related to objects, they cannot be declared as virtual.————————————————————————————————
2. Can user-defined object be declared as static data member of another [...]
C++ Design Pattern: What is a Singleton class?
Q: What is a singleton class?A: A class whose number of instances that can be instantiated is limited to one is called a singleton class. Thus, at any given time only one instance can exist, no more.
Q: Can you give me an example, where it is used?A: The singleton design pattern is used whenever the [...]
C++ faq’s and interview Questions
1. Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible ?There is nothing like Virtual Constructor. The Constructor cant be virtual as the constructor is a code which is responsible for creating a instance of a class and it cant be delegated to [...]
Read Full Post | Make a Comment ( None so far )SCJP faq
The following links may clear some of the common doubts about SCJP Exam. I am planning to add some additional Frequently Asked Questions not listed in the following links. So please check this page often to get the updated FAQ.
SCJP Certification FAQ
Deepak’s SCJP2 Certification FAQ.
http://deepak.htmlplanet.com/certi.html#one
A very good SCJP2 certification faq from [...]
C++ FAQ’s
Bjarne Stroustrup’s C++ Style and Technique FAQ
http://www.research.att.com/~bs/bs_faq2.html