In reply to cgales:
The code which you have shown above-:
initial begin
my_ext_class = new(); line1
my_ext_class.display(); line2
my_base_class = my_ext_class; line3 // Assign the extended class handle to the base class handle line4
my_base_class.display(); line5
end
Line2 will display “inside extended class”
Line5 - either you write line3 or not, my_base_class will always display “inside base”.
I want to call base method(ie inside base) using my_ext_class handle , how it is possible is my question ?