Which is the parameter that is added to every non-static
member function when it is called?
Answer Posted / manjunath
Ex:
class Employee{
public:
int member_Function1(){}
void display()
{
do something;
}
};
int main()
{
Employee e1;
e1.member_Functiuon(int a, int b);------> refer below
1...
}
1...
Here e1 is an object of Employee Class.
Now e1.member_Function(int a, int b) means
implicitly the this pointer is applied to the
function as
member_Function(Employee *const this, int a, int b).
Here the implicit this is a constant pointer to the
object's address of type Employee. Once the Object has been
created the address is given to it(e1). the address is
passed as the first argument becoz the function resolving
is faster...
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
What are objects in oop?
What is the fundamental idea of oop?
How long to learn object oriented programming?
What is an advantage of polymorphism?
Explain the advantages of inheritance.
What is new keyword in oops?
what type of questions
Why is destructor used?
What is advantage of inheritance?
i got a backdoor offer in process global,Bangalore..Can i work with it?
Is data hiding and abstraction same?
Explain the concepts involved in Object Oriented programming.
What is destructor oops?
Get me an image implementation program.
Why do while loop is used?