OOP Bisic-desctructor can be virtual,while constructer can not? why?

A:
    virtual function uses virtual calling.  virtual calling is a  kind of operation mechanism which can run on the condition of part information being provided. it allows us to call a function that we only know the interface while not know accurate object type of the function. 
    However if we create an object, you must know what kind of the object is accrurately! Therefore, the constructor can not be virtual.

posted on 2008-02-26 11:21  飞天舞者  阅读(237)  评论(0编辑  收藏  举报

导航

For more information about me, feel free email to me winston.he@hotmail.com