What is the difference between virtual functions and pure virtual functions?
A virtual function is a member function of base class which can be redefined by derived class. A pure virtual function is a member function of base class whose only declaration is provided in base class and should be defined in derived class otherwise derived class also becomes abstract.
Is This Answer Correct ? | 0 Yes | 0 No |
What is a constructor initializer list?
How to generate random numbers in C++ with a range?
What does it mean to declare a member function as static in C++?
What are pass by value and pass by reference?what is the disadvantage of pass by value?
Briefly explain various access specifiers in C++.
What are the advantages/disadvantages of using #define?
Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.
How can a C function be called in a C++ program?
Name the operators that cannot be overloaded.
Explain encapsulation in C++.
How does stack look in function calls? Write a recursive function call, how will the stack look like?
How do you write a function that can reverse a linked-list in C++?