OOPS - assigning base class

In reply to shatrish:

You can not access local variable in derived class. Local variable cannot be inherited in derive class.In spite of local variable you can use “protected” key word. And again you can only access the variable through methods which are described inside the class. You can not access the variable using “.” operator.
see encapsulation in verificationguide …