What is virtual constructor paradigm?

Answer Posted / priyanka kokil

Hi Subhashish Sen,

Thanks for your response and adding more details to my
answer.

Thanks

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between object-oriented programming and procedural programming?

879


How can a struct in c++ differs from a struct in c?

790


What is a sequence in c++?

742


Should a constructor be public or private?

730


What is atoi in c++?

790






What is different in C++, compare with unix?

784


How does com provide language transparency?

770


What happens when the extern "c" char func (char*,waste) executes?

826


What is auto used for in c++?

760


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 //INCLUDE EVERY KNOWN HEADER FILE #include //FOR ANY CASE... #include #include #include main() { int far *ptr; //FAR POINTER!!! long address; char key=0; //A KEY FROM THE KEYBOARD int temp=0; clrscr(); cout<<"Enter Address:"; cin>>hex>>address; //GETS THE ADDRESS clrscr(); (long)ptr=address; temp=*ptr; //PUTS THE ADDRESS IN THE PTR cout<<"["<

2058


Why do we need templates?

725


What is late binding c++?

712


Can you pass an array to a function in c++?

717


Why null pointer is used?

755


What is the use of register keyword with the variables?

727