Syntax error : System verilog keyword 'void' is not expected to b used in this context

In reply to gaurson:

@gaurson

well I made a blunder in typing on forum… I did the following in Class B instead of Class C:

test_mode = new();
printing = new();

and got the error I wrote in my previous post. Yes I am new to OVM and system verilog.