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 |
The expansion of GNU
why freind function takes more parameter than normal member function in c++?
what is a class
What are different oops concepts?
Write 7 differences between "Public" function and "Private" function?
Write a macro for swapping integers
what uses of c++ language?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
what is function overloading..?
Can we have a private virtual method ?
for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)
Can abstract class have normal methods?