C++

C++ faq’s and interview Questions – 3

Posted on July 17, 2007. Filed under: C++, faq, faq's, jobs, tutorials |

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

Posted on July 16, 2007. Filed under: C++, faq, faq's, monster jobs, naukri jobs, tips, tutorials |

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 [...]

Read Full Post | Make a Comment ( None so far )

C++ Design Pattern: What is a Singleton class?

Posted on July 16, 2007. Filed under: C++, faq, faq's, jobs, singleton class, tutorials |

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 [...]

Read Full Post | Make a Comment ( None so far )

C++ faq’s and interview Questions

Posted on July 13, 2007. Filed under: C++, faq, faq's, interview questions, jobs |

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 )

C++ FAQ’s

Posted on June 22, 2007. Filed under: C++, faq, faq's |

Bjarne Stroustrup’s C++ Style and Technique FAQ
http://www.research.att.com/~bs/bs_faq2.html

Read Full Post | Make a Comment ( None so far )

Liked it here?
Why not try sites on the blogroll...