which of the below statements are true about static members (class members) and this pointer?
You can call constructor of a class from instance method (other than constructor) of same class directly using this() call.
you can use this pointer in a static method of a class.
you can use this pointer in an instance method of a class.
I can call instance members of a class directly using class name from outside classes which doesn't inherit it.
this pointer is available only for instance methods, and not for static methods. Instance members can be called only with object from other classes.
Note : class members or static members, both are same.
Back To Top