Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1860


How do you define a class in oop?

1126


what is graphics

2461


explain sub-type and sub class? atleast u have differ it into 4 points?

2317


Please send ford technologies placement paper 2 my mail id

2103


Why do we use inheritance?

1129


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

3229


What does sksksk mean in text slang?

2123


What are the benefits of polymorphism?

1276


What is class in oop with example?

1100


What is ambiguity in inheritance?

1120


Why is encapsulation used?

994


What is difference between polymorphism and inheritance?

1089


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

2136


How to improve object oriented design skills?

1017