Under what conditions is multiple inheritance not recommended?
Answer Posted / ackmed
If you derive from more than one base classes with the same
parent, then that parent should be a virtual base class.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the main features of c++?
What do you mean by const correctness?
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include What is #include sstream? Write a struct time where integer m, h, s are its members? What are shallow and deep copies? What is stack unwinding? What is c++ best used for? Distinguish between new and malloc and delete and free(). Can I uninstall microsoft c++ redistributable? What are destructors? What is the difference between passing by reference and passing a reference? What is the latest version on c++? what is the difference between overloading & overriding? give example. What is the use of lambda in c++?