How to create a pure virtual function?
You declare a pure virtual function by using a pure specifier ( = 0 ) in the declaration of a virtual member function in the class declaration. Class A is an abstract class. The compiler would not allow the function declarations A g() or void h(A) , declaration of object a , nor the static cast of b to type A .
| Is This Answer Correct ? | 0 Yes | 0 No |
how to create window program in c++.please explain.
What is the latest version on c++?
What do you mean by global variables?
Explain what is class definition in c++ ?
Will the following program execute?
Explain how an exception handler is defined and invoked in a Program.
What is format for defining a structure?
How do you sort a sort function in c++ to sort in descending order?
Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.
Explain the difference between new() and malloc() in c++?
What is decltype c++?
Explain what data encapsulation is in c++?