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 is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What are oops functions?
Which is not an object oriented programming language?
#include
What is property in oops?
Is abstract thinking intelligence?
What is the difference between inheritance and polymorphism?
What is polymorphism what is it for and how is it used?
Explain the concepts involved in Object Oriented programming.
Which language is not a true object oriented programming language?
What is polymorphism in oops with example?
write string class as your own class in java without using any built-in function
What is oops in simple words?
What is overloading and its types?
What is difference between abstraction and encapsulation?