Hpw can i define extern with virtual function in my base class?

HI All,

i am trying to define few methods in my base class and wanted to use extern with virtual, however it throws out an error saying invalid syntax.

i want to have ease at looking at the class at the same time have flexibility for derived classes to override the method in base class.
is there any way to do that ?
please let me know.

i am using something like this.
class base extends uvm_test;
extern function do_method (); // this works fine.
extern virtual function do_method( ); // this doesnt work. i would like this one to work somehow.

endclass

function base::do_method( );

endfunction

In reply to Blitzz0418:

It would help to show code closer to exactly what you are trying to do and the exact error message. This works fine for me:

class uvm_test; endclass
class base extends uvm_test;
extern function void do_method (); 
extern virtual function void do_virtual_method( ); 
endclass

function void base::do_method( );
endfunction
function void base::do_virtual_method( );
endfunction