jdshah
Junior Member level 3
When we call new constructor for derived class, system verilog will call new for base class automatically. Memory for base class will be automatically created. Derived class can not be created with out creating parent class.
"A super.new call shall be the first statement executed in the constructor. This is because the superclass
shall be initialized before the current class and, if the user code does not provide an initialization, the
compiler shall insert a call to super.new automatically."
My question is if base class is abstract class then also it is created by creating derived class? Will its memory be created?
"A super.new call shall be the first statement executed in the constructor. This is because the superclass
shall be initialized before the current class and, if the user code does not provide an initialization, the
compiler shall insert a call to super.new automatically."
My question is if base class is abstract class then also it is created by creating derived class? Will its memory be created?