In C++ a class with at least one pure virtual function is called abstract class. You can not create objects of that class, but may only have pointers or references to it.
If you are deriving from an abstract class, then make sure you override and define all pure virtual functions for your class.
From your snippet Your class AliceUniversity
seems to be an abstract class. It needs to override and define all the pure virtual functions of the classes Graduate
and UniversityGraduate
.
Pure virtual functions are the ones with = 0;
at the end of declaration.
Example: virtual void doSomething() = 0;
For a specific answer, you will need to post the definition of the class for which you get the error and the classes from which that class is deriving
Related Posts:
- How to implement 2D vector array?
- What is the easiest way to initialize a std::vector with hardcoded elements?
- Vector of Vectors to create matrix
- How to find out if an item is present in a std::vector?
- How do I print out the contents of a vector?
- check if a std::vector contains a certain object?
- How to navigate through a vector using iterators? (C++)
- C++ for each, pulling from vector elements
- How do I erase an element from std::vector<> by index?
- Is it more efficient to copy a vector by reserving and copying, or by creating and swapping? [duplicate]
- How do I reverse a C++ vector?
- Debug assertion failed. C++ vector subscript out of range
- A proper way to create a matrix in c++
- No matching member function for call to ‘push_back’ error
- Pass a vector by reference C++
- Why there is no pop_front method in C++ std::vector?
- Initializing a two dimensional std::vector
- C++ – No matching member function for call to ‘push_back’
- Debug assertion failed. C++ vector subscript out of range
- Vector is not a Template?
- Displaying a vector of strings in C++
- ‘vector’ in namespace ‘std’ does not have a template type
- C++ error: Undefined symbols for architecture x86_64
- Vector of structs initialization
- Converting a vector
to string - vector
::size_type in C++ - Why use a new call with a C++ ‘vector’?
- Why doesn’t std::vector::push_front() exist?
- C++ delete vector, objects, free memory
- How to iterate over a vector?
- Where do “pure virtual function call” crashes come from?
- How to access the contents of a vector from a pointer to the vector in C++?
- Insert object at index of vector c++
- How to convert vector to array
- No operator << matches these operands
- Initialize empty vector in structure – c++
- splitting a string into an array in C++ without using vector
- Error: expected type-specifier before ‘ClassName’
- What’s the most efficient way to erase duplicates and sort a vector?
- Best way to extract a subvector from a vector?
- Appending a vector to a vector
- cannot declare variable ‘’ to be of abstract type ‘’
- How to initialize a vector of pointers
- C++ Erase vector element by value rather than by position?
- Correct way to work with vector of arrays
- C++ error: double free or corruption (fasttop)
- error C2106: ‘=’ : left operand must be l-value
- I get this error: “glibc detected”
- creating an array of structs in c++
- member access within null pointer of type ‘struct ListNode’
- How to create a vector of class objects in C++?
- “vector” was not declared in this scope
- creating an array of structs in c++
- Vector declaration “expected parameter declarator”
- Why is this vector iterator not incrementable?
- Why can’t I make a vector of references?
- invalid use of template name without an argument list
- Displaying contents of a vector container in C++
- What is the size of sizeof(vector)? C++
- c++ vector bubble sort
- clearing a vector of pointers [duplicate]
- Array of Linked Lists C++
- How do I find the length of an array?
- C++ — expected primary-expression before ‘ ‘
- Using getline() with file input in C++
- g++ ld: symbol(s) not found for architecture x86_64
- How do I iterate over the words of a string?
- C++ Vector of pointers
- error: lvalue required as unary & operand
- Cannot open include file: ‘stdio.h’ – Visual Studio Community 2017 – C++ Error
- srand(time(0)) and random number generation
- How to convert integer to double implicitly?
- How do I tokenize a string in C++?
- Reverse Contents in Array
- Why would we call cin.clear() and cin.ignore() after reading input?
- What are the most widely used C++ vector/matrix math/linear algebra libraries, and their cost and benefit tradeoffs?
- Read whole ASCII file into C++ std::string
- Reading getline from cin into a stringstream (C++)
- How to make an array with a dynamic size? General usage of dynamic arrays (maybe pointers too)?
- Call to implicitly deleted copy constructor in LLVM
- C++ Linked List Node with class
- What is the use of intptr_t?
- getline: identifier not found
- Colorizing text in the console with C++
- Show two digits after decimal point in c++
- error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
- Why am I getting the “Expression is not assignable” error?
- template argument deduction/substitution failed, when using std::function and std::bind
- C++ Global variable declaration
- OpenMP set_num_threads() is not working
- invalid use of ‘this’ outside of a non-static member function error?
- Dev C++ compilation error, permission denied
- convert string to size_t
- Use of ‘const’ for function parameters
- What is the difference between the dot (.) operator and -> in C++?
- C++ classes (public, private, and protected)
- Here is some error with my .h file which show [Error] unterminated #ifndef when I include my class template in it
- How to Read from a Text File, Character by Character in C++
- C++ error C2181: illegal else without matching if
- Eclipse CDT: Symbol ‘cout’ could not be resolved