Override nonvirtual method

In reply to dave_59:

Hi Dave,

I couldn’t understand if I can call an overridden non virtual task from a task that was not override.
The object task that are not overridden don’t call the overridden tasks if they are not virtual.
I am having problem with the example below:

virtual class A; 
  task disp (); 
    $display(" This is class A "); 
  endtask
  virtual task call_disp();
    disp();
  endtask
endclass

class EA extends A; 
  task disp();
    $display(" This is Extended class A ");
  endtask
endclass

program main;
EA my_ea;

initial
begin
  my_ea = new();
  my_ea.disp();
  my_ea.call_disp();
end
endprogram

The result is the following:

This is Extended class A
This is class A