What do you mean by pure virtual functions in C++? Give an example?
A pure virtual function is a virtual function in C++ for which we need not to write any function definition and only we have to declare it. It is declared by assigning 0 in the declaration. An abstract class is a class in C++ which have at least one pure virtual function.
Is This Answer Correct ? | 0 Yes | 0 No |
What is a storage class? Mention the storage classes in c++.
What is the difference between public, private, protected inheritance?
What is wrapper class in c++?
How to declare a function pointer?
What compiler was used?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What is linked list in c++?
What is the difference between mutex and binary semaphore?
What is std::move?
Which one is a preferred language C or C++? Why?
Give 10 points of differences between C & C++.
What are the differences between a struct and a class in C++?