which are the 4 members functions in c++ objects that can
either be declared explicitly by programmer or implementation
if nt available.

Answers were Sorted based on User's Feedback



which are the 4 members functions in c++ objects that can either be declared explicitly by program..

Answer / pramod

Zero Argument constructor,Copy Constructor,Assignment
Operator,Destructor

Is This Answer Correct ?    15 Yes 0 No

which are the 4 members functions in c++ objects that can either be declared explicitly by program..

Answer / pramod

Sarita...
1)if i am not wrong...compiler never provides the
parametrized constructor. For example, you can try
this,simply create a parameterized object and don't specify
a parameterized constructor ( as per you say compiler will
provide one), it will generate an error.
2)zero argument constructor and default constructor are the
same things.

Is This Answer Correct ?    3 Yes 0 No

which are the 4 members functions in c++ objects that can either be declared explicitly by program..

Answer / dharmendra

default constructor , copy constructor & Destructor

Is This Answer Correct ?    1 Yes 1 No

which are the 4 members functions in c++ objects that can either be declared explicitly by program..

Answer / sarita

zero argument constructor,default constructor,perameterized
constructor,copy constructor

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More OOPS Interview Questions

• What are the desirable attributes for memory managment?

0 Answers  


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

1 Answers  


C#.net Interview Question A=10 B=5 C=A+B Print C The above will be given in a multiline textbox. You need to parse the above input, store values for A,B&c. And you have to display the value of C.

1 Answers   Syncfusion,


In the following declaration of main, "int main(int argc, char *argv[])", to what does argv[0] usually correspond? 1) The first argument passed into the program 2) The program name 3) You can't define main like that

6 Answers  


What is the difference between the C & C++?

9 Answers   HCL,






How compiler selects(internally) required overridden function in inheritance?

2 Answers   CSC, Infinite Computer Solutions,


State what is encapsulation and friend function?

0 Answers   BirlaSoft,


what is mean by design pattern

4 Answers  


What is the use of fflush(stdin) in c++?

4 Answers   HCL,


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

0 Answers   SRA,


#include <iostream> using namespace std; int main() { int a = 2; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][c[1][4]]; }

2 Answers   TCS, Wipro,


Write an operator overloading program to Overload ‘>’ operator so as to find greater among two instances of the class.

1 Answers  


Categories