suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?
3 8396Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?
4 12603Post New EA Electronic Arts Interview Questions
Where local variables are stored in c?
How to delete a node from linked list w/o using collectons?
What is asp.net ajax? : asp.net ajax
Write a note about the virtual member function?
What is the main purpose of power point?
Explain what is the role does the network play in the internet of everything?
What Is Differ tax,
What are different commands available in ember-cli?
What gets stored inside msdb database?
Data shows the audience for a client's running shoe store is women ages 35 to 50. How can you optimize this client's display network campaign based on your research?
Which property of the rain coat makes it water proof?
Can I remove microsoft visual c++?
What is the difference between Java and C++?
What is the method of soil replacement test?
What is linked data store? Explain with an example?