Differentiate between a constructor and a method in C++.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

0 Answers  


pls help.. paper bills.. 1000, 500, 100, 50, 20, 10, 5, 1.. create a program that will count all the paper bills in the number being input.. example: enter a number: 3886 there is/are: 3 ->1000 1 ->500 3 ->100 1 ->50 1 ->20 1 ->10 1 ->5 1 ->1 example2: enter a number: 728 there is/are: 0 ->1000 1 ->500 2 ->100 0 ->50 1 ->20 0 ->10 1 ->5 3 ->1

4 Answers  


What is a modifier in c++?

0 Answers  


What is stack unwinding?

0 Answers  


Describe run-time type identification?

1 Answers  






describe private access specifiers?

0 Answers  


What is difference between class and structure in c++?

0 Answers  


class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.

5 Answers   Quark,


State the difference between delete and delete[].

0 Answers  


What are the stages in the development cycle?

0 Answers  


Why #include is used?

0 Answers  


how to explain our contribution in the project?

0 Answers   Wipro, Yahoo,


Categories