For C++ Gurus

Switzerland
October 16, 2006 3:27pm CST
Can anybody tell me how can we achieve polymorphism without using virtual functions in C++
2 responses
@mythmoh (3984)
• United States
16 Oct 06
Refer Balaguruswamy book about programming on C++.It has lot of examples for this and this book is available in all the engineering college library.
• Switzerland
17 Oct 06
Please read polymorphism as runtime polymorphism..I ment by achieving runtime polymorphism without using virtual functions..
@dholey (1383)
• India
20 Dec 06
if i am not wrong , in polymorphism we create pointer to the base class, then that pointer shows multi faces and handles members of child too,(also called late binding), as per my information it is possible with the members of the same name as created in base class, it is needed that those functions are to be placed in back ground, so the pointer to the base class access access those members (with the same names as given n base) from child class too, IT IS POSSIBLE WITH virtual functions only, some where i read that polimorphism is related to the virtual functions only, if you have some extea knowledge please update me.. i will be happy to get new information .. waiting .. STILL FOR ME POLYMORPHISM IS POSSIBLE WITH VIRTUAL FUNCTIONS ONLY