EMC Proven Professional – Data Science and Big Data Analytics — Question 15
In R, functions like plot() and hist() are known as what?
Answer options
- A. generic functions
- B. virtual methods
- C. virtual functions
- D. generic methods
Correct answer: B
Explanation
The correct answer is B, as plot() and hist() are indeed considered virtual methods in R, allowing for different implementations depending on the class of the object being passed. The other options, while related to programming concepts, do not accurately describe the nature of these functions in R.