Multiple class inheritance

In reply to Ayush_1:

I have 3 classes all derived one after other , in third class I want to call the virtual function of first class , where the virtual function with same name is declared in all 3 classes how can I do that any views.


class A;
  
  virtual function void display();
    $display("Inside A");
  endfunction
  
endclass

class B extends A;
  
  virtual function void display();
    super.display();
    $display("Inside B");
  endfunction
  
endclass

class C extends B;
  
  virtual function void display();
    super.display();
    $display("Inside C");
  endfunction
  
endclass

 
  C c_h;
      
    c_h=new();
    c_h.display();
    
  end
  
endmodule

Regards,
Shanthi V A
www.maven-silicon.com