what is the difference between virtual function and
destoctor?
Answer / prabhakar
virtual function is just like a member function of a class.it is used to over loading mechanisam.it can be acesses by any object of either base class or derived class.
destructor is used to dellocate the memory of an object.it can call by using delete operator.
Is This Answer Correct ? | 3 Yes | 0 No |
Why do we use encapsulation in oops?
JAVA is FULLY OBJECT ORIENTED PROGRAMING LANGUAGE?
The expansion of GNU
which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.
what is function over loading?
You attempt to query the data base with this command: SELECT name, salary FROM employee WHERE salary=(SELECT salary FROM employee WHERE last name='Wagner' OR dept no=233) Choose most appropriate option from the following: 1)Sub-queries are not allowed in the where clause. 2)a multiple row sub-query used with a single row comparison operator. 3)a single row query is used with a multiple row comparison operator.
Can destructor be overloaded?
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; wow *b; a.x = 22; b = &a; a.x = 23; cout << b->x; return 0; }
What are the components of marker interface?
What are two types of polymorphism?
Why is there no multiple inheritance?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy