In reply to dave_59:
Hi,
My doubt is opposite to thread headline but still makes sense to put here.
Is there any way that we can call child class method from base class handle even if that function is not present in parent class?
class base;
// g function not present in base class
endclass
class der extends base;
function void g(); // method present in child class only
// more code
endfunction
endclass
initial begin
base b;
der der_h;
der_h = new;
b = der_h;
b.g(); // calls but gives compiler error that function is not present in class base
end
Any way so that above can be done?
Thanks
Ankur Jain