OOPS
August 29, 2024OOPS
August 29, 2024OOPS
|
Question 134
|
Usually pure virtual function
|
Has complete function body
|
|
|
Will never be called
|
|
|
Will be called only to delete an object
|
|
|
Is defined only in derived class
|
Question 134 Explanation:
→ A virtual function or virtual method is an inheritable and overridable function or method for which dynamic dispatch is facilitated.
→ A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract.
→ A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract.
Correct Answer: D
Question 134 Explanation:
→ A virtual function or virtual method is an inheritable and overridable function or method for which dynamic dispatch is facilitated.
→ A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract.
→ A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract.
