What is the main use of the generic parameter?

What is the main use of the generic parameter?
A. Defining constant type
B. Assigning some initial value to constant
C. Reusability
D. Using constant type within the entity
 
Answer: c
Explanation: The purpose of defining a generic statement within an entity is to confer more flexibility and reusability. A generic parameter is basically used globally with some value. Whenever one want to reuse same thing again and again then defining it as a generic parameter will be useful rather than defining it again and again.
 

Tìm kiếm

Back
Top