what is the function of 'this' operator ?

Answer Posted / madhu

'this' pointer is created when you create an object with
dynamic memory allocation. 'this' pointer will be created at
the time of object creation.
It holds the current object's address.
'this' cannot be used inside the static or a friend functions.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by abstraction?

831


What are constructors in oop?

810


What is polymorphism explain?

990


What is a superclass in oop?

920


What is polymorphism and why is it important?

785


What is static in oop?

836


What is the use of oops?

811


What is a class and object?

805


What is purpose of inheritance?

864


What is constructor in oop?

829


Why do pointers exist?

890


What is the purpose of polymorphism?

891


What is polymorphism explain its types?

936


What is methods in oop?

750


to find out the minimum of two integer number of two different classes using friend function

1883