Section 11.23

Add the following text at the end of the section:


A parameterized class may extend another parameterized class. For example:


class C #(parameter type T = bit); ... endclass             // base class
class D1 #(parameter type P = real) extends C;              // T is bit (the default)
class D2 #(parameter type P = real) extends C #(integer);   // T is integer
class D3 #(parameter type P = real) extends C #(P);         // T is P

 

Class D1 extends the base class C using the base class's default type (bit) parameter. Class D2 extends the base class C using an integer parameter. Class D3 extends the base class C using the parameterized type (P) with which the extended class is parameterized.