What are virtual functions and what is its use?
A virtual function is a member function that you expect to be redefined in derived classes. When you refer to a derived class object using a pointer or a reference to the base class, you can call a virtual function for that object and execute the derived class's version of the function.
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference between Abstraction and encapsulation in C++?
In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.
Mention the storage classes in c++.
Write about all the implicit member functions of a class?
Which function should be used to free the memory allocated by calloc()?
How much do c++ programmers make?
Is c++ free?
Explain about templates of C++.
Who discovered c++?
What is the use of function pointer?
What are the steps in the development cycle?
Write a program that will count the number of digits in an input integer up to value MAX_VALUE (2147483647). Thus, for an input of 5837 the output should be 4 digits Make sure that your program works for the numbers 0, 1, and 10. For the number 0, the output should be 1 digit