Can I call a virtual function from constructor of the class?
no, compile time error
it is not recommended. Because virtual table will be constructed completely only after constructor execution. So if you call a virtual function, it may execute a wrong or undesired function.
yes, it won't create any problem.
Back To Top