what is the function of 'this' operator ?

Answer Posted / bhawna

Basically "this" opertaor is a part of instance variable
hiding,when a local variable has the same name as an
instance variable,the local variables hides the instance
variables

Is This Answer Correct ?    21 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class and object in oops?

611


Explain the concepts involved in Object Oriented programming.

638


What is methods in oop?

542


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3837


What is the use of oops?

621






write a C++ program for booking using constructor and destructor.

2051


write string class as your own class in java without using any built-in function

1976


What type of loop is a for loop?

682


Why do we use class?

635


What is destructor in oop?

625


How do you explain polymorphism?

592


What is the difference between a mixin and inheritance?

522


What is the purpose of polymorphism?

681


What is object and class in oops?

588


What is oops with example?

564