What is the use if instanceof keyword? and How do refer to a current instance of object?

"instanceof" keyword is used to check what is the type of object. 
we can refer the current instance of object using "this" keyword. For instance if we have class which has color property we can refer the current object instance inside any of the method using "this.color".

asked Sep 13, 2013 in oops by rajesh
edited Sep 12, 2013
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.