what is the function of 'this' operator ?

Answer Posted / sohaibx

it is an implicit pointer holding the address of current object.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the renewal class?

2171


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1672


What is the important feature of inheritance?

637


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

1585


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1702






How many human genes are polymorphic?

577


Why polymorphism is used in oops?

586


What is the diamond problem in inheritance?

579


Where is pseudocode used?

569


What is encapsulation in ict?

608


What are the 3 principles of oop?

621


What is polymorphism oop?

624


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1661


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1647


How do you achieve polymorphism?

618