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 is class in oop with example?

830


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4471


What are classes oop?

789


What is overriding in oop?

787


What is the difference between static polymorphism and dynamic polymorphism?

842


What is data binding in oops?

822


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1810


Why multiple inheritance is not possible?

794


What is difference between multiple inheritance and multilevel inheritance?

875


What is the renewal class?

2412


What does it mean when someone says I oop?

808


How long to learn object oriented programming?

809


What is the main feature of oop?

896


Can a destructor be called directly?

802


Why do we use oop?

823