adplus-dvertising
frame-decoration

Question

Why is the notion of virtual functions considered to be important for reusability?

a.

Because virtual functions can be redefined by specializations

b.

Because virtual functions cannot be redefined by specializations

c.

Because virtual functions provide a default implementation

d.

Because virtual functions provide a unique implementation

Posted under Software Engineering

Answer: (a).Because virtual functions can be redefined by specializations Explanation:The notion of virtual functions is considered important for reusability because it allows a variant of some object to be created by constructing a specialization of that object, in which some services are redefined. The virtual functions are services of an object that have a default implementation, which can be redefined by specializations of the object, providing greater flexibility and adaptability to different situations.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Why is the notion of virtual functions considered to be important for reusability?

Similar Questions

Discover Related MCQs

Q. What is the main characteristic of the set of objects identified in the first modeling stages of object-oriented design?

Q. What is the main source of lower-level objects in object-oriented design?

Q. What is the global process model of the Booch Method comprised of?

Q. What is the purpose of the first step in the Booch Method?

Q. What is the emphasis of the analysis stage in the first step of the Booch Method?

Q. What is the outcome of the second step in the Booch Method?

Q. What is the process model of the Booch Method?

Q. What is the third step in the Booch Method concerned with?

Q. What is the emphasis of the analysis stage in the Booch Method?

Q. What are the results of the design stage in the Booch Method shown in?

Q. What is the outcome of refining abstractions in the Booch Method?

Q. What is one of the most notable characteristics of Booch's method?

Q. What is the aim of the analysis phase in the Fusion method?

Q. What is shown in a class diagram in the Fusion method?

Q. What is the outcome of the design phase in the Fusion method?

Q. What is the interface model in the Fusion method?

Q. What are the most notable characteristics of the Fusion method?

Q. What is emphasized in the design phase of the Fusion method?

Q. What is RUP (Rational Unified Process)?

Q. What are the phases of RUP (Rational Unified Process)?