To define an abstract class in C++, at least one member function must be declared as _______.
- inline
- pure virtual
- private
- constant
In C++, an abstract class is defined by having at least one pure virtual function. This means the function is declared but not defined within the class, ensuring that derived classes must implement it.
Loading...
Related Quiz
- The result of dividing two integers in C++ is always a(n) _______.
- Imagine a function that performs file I/O and may throw an exception. What might be a concern if this function is used inside a constructor, and how might it be addressed?
- Which of the following is a correct file extension for a C++ source file?
- Declaring a function as a friend within a class _______ make that function a member of the class.
- What is the purpose of the throw keyword in exception handling in C++?