Which is the parameter that is added to every non-static
member function when it is called?

Answer Posted / arun

"this" (i.e. Pointer to the object which call the member
function) is passed as the argument when a member function
is called.

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why interface is used?

733


what is different between oops and c++

2180


what is the sylabus for priliminaries?

1890


What is protected in oop?

801


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1960


what type of questions

1883


What does no cap mean?

778


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

938


What are oops methods?

747


What does and I oop mean?

827


What is overriding in oops?

809


when to use 'mutable' keyword and when to use 'const cast' in c++

1875


Why is destructor used?

749


How to call a non virtual function in the derived class by using base class pointer

5881


What is difference between data abstraction and encapsulation?

826