What is an abstract class?
What is an abstract class?
Model answer
An **abstract class** is a class in object-oriented programming that **cannot be instantiated**, so it cannot be used to create objects. Instead it is used as a **superclass** for other classes, providing a common set of properties and methods that the subclasses inherit and implement as necessary. In SystemVerilog an abstract class is declared with virtual class . It can contain **pure virtual methods** (a prototype without a body) which every non-abstract subclass has to implement.