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
Answer / pramod
Zero Argument constructor,Copy Constructor,Assignment
Operator,Destructor
Is This Answer Correct ? | 15 Yes | 0 No |
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 |
Answer / dharmendra
default constructor , copy constructor & Destructor
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / sarita
zero argument constructor,default constructor,perameterized
constructor,copy constructor
Is This Answer Correct ? | 1 Yes | 7 No |
• What are the desirable attributes for memory managment?
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?
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.
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
What is the difference between the C & C++?
How compiler selects(internally) required overridden function in inheritance?
2 Answers CSC, Infinite Computer Solutions,
State what is encapsulation and friend function?
what is mean by design pattern
What is the use of fflush(stdin) in c++?
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(); }
#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]]; }
Write an operator overloading program to Overload ‘>’ operator so as to find greater among two instances of the class.