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

Can we override main method?

599


What is difference between oop and pop?

609


What is polymorphism and why is it important?

556


What are the types of abstraction?

551


Where is pseudocode used?

563






How do you define a class in oop?

624


What is oops and its features?

580


What is inheritance write a program to show use of inheritance?

611


hi all..i want to know oops concepts clearly can any1 explain??

1680


What is polymorphism used for?

566


what are the ways in which a constructors can be called?

1575


Give two or more real cenario of virtual function and vertual object

1849


What is cohesion in oop?

617


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

1648


What do you mean by overloading?

576