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
What is polymorphism give a real life example?
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
How do you achieve polymorphism?
What is solid in oops?
Whats oop mean?
What does sksksk mean in text slang?
What is the advantage of oop over procedural language?
What is the point of oop?
What is static modifier?
write a program that takes input in digits and display the result in words from 1 to 1000
How long to learn object oriented programming?
Get me an image implementation program.
What is an example of genetic polymorphism?
What is the use of oops?
What is difference between oop and pop?