In reply to verif_learner:
First, you should differentiate between functional coverage and assertion coverage.
Assertion coverega (assert property, cover property) cannot be implemented in Class-based Components, but in modules, interfaces and program blocks.
Functional coverage can be implemented in class-based components and in modules, interfaces and program blocks.