Which is the parameter that is added to every non-static
member function when it is called?
Answers were Sorted based on User's Feedback
Answer / manish kumar
(this) pointer is added.
this pointer contains the address of the object through
which function is called.
this->data member will give the data of the object.
| Is This Answer Correct ? | 49 Yes | 4 No |
Answer / 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 |
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 |
what is opps?why it is use in programming language?
why constructor cannt be declar virtually? why destructor cannt be overloaded?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
Write a program to reverse a string using recursive function?
what is cast operator?
what is the difference between ERROR and EXCEPTION?
i had specified the access specifier for abstarct class member like (pure virtual function) as private.But it can be accessed by the derived class.How the private member of one class is accessed by other class.if any body face this problem and found the solution plz reply to me.
Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?
Write on signed and unsigned integers and give three (3) examples each
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Please send ford technologies placement paper 2 my mail id
What is static modifier?