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
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< How do you define a class in oop? what is graphics explain sub-type and sub class?
atleast u have differ it into 4 points? Please send ford technologies placement paper 2 my mail id Why do we use inheritance? write a program using c++ to implement single contiguous
memory mangement techniques.display the content of the main
memory after yhe allocation of jobs and percentage of the
wastage of the main memory What does sksksk mean in text slang? What are the benefits of polymorphism? What is class in oop with example? What is ambiguity in inheritance? Why is encapsulation used? What is difference between polymorphism and inheritance? What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems? How to improve object oriented design skills?