1. abstract function doesn't contain any body but a virtual function contain body
2. we must be implement the abstract function in derived class but it is not necessary for virtual function
3. abstract function can only use in abstract class but it is not necessary for virtual function
4. abstract function are called pure virtual function
2. we must be implement the abstract function in derived class but it is not necessary for virtual function
3. abstract function can only use in abstract class but it is not necessary for virtual function
4. abstract function are called pure virtual function
No comments:
Post a Comment