Can we inherit constructor in c++?


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

Post New Answer

More C++ General Interview Questions

What is the cout in c++?

0 Answers  


Which of the following operator cannot be overloaded?

2 Answers   TCL,


class base { public: int fun(int) {} }; class base2 { public: int fun(float) { } }; so here qustion is both function either function overloading or over riding;

4 Answers   Manhattan,


What is virtual base class?

0 Answers  


Write a program to calculate the BMI of a person using the formula BMI = weight/height2.

2 Answers  






1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?

5 Answers  


Why is c++ still best?

0 Answers  


Write a note about the virtual member function?

0 Answers  


What is the type of 'this' pointer?

0 Answers  


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

0 Answers  


Does improper inheritance have a potential to wreck a project?

0 Answers  


How do you add an element to a set in c++?

0 Answers  


Categories