In C++, _______ functions cannot be virtual.
- inline
- recursive
- overloaded
- default
Inline functions in C++ are expanded at the place where they are called, rather than being invoked. Because of this, they cannot be virtual as the virtual mechanism relies on function calls.
Loading...
Related Quiz
- How does a range-based for loop work in C++11 and above?
- Consider enum class in C++11 and above. Which of the following is a true statement about its functionality?
- What is the output of the logical NOT (!) operator when applied to a non-zero operand?
- Imagine a scenario where you have to maintain a collection of elements while keeping them sorted after insertions and deletions. Which STL container would be the most efficient choice for this task?
- Who is the creator of the C++ programming language?