View Single Post
  #2 (permalink)  
Old February 20th, 2008, 04:16 AM
Peter_APIIT Peter_APIIT is offline
Authorized User
 
Join Date: May 2007
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to Peter_APIIT
Default

I could not understand why to use a pure virtual function to make the class an abstract class instead of using only a virtual function

As far as i know, a class ia abstract when contain one pure virtual function.

The purpose of pure virtual function is this function may redefined my your later derived class function.

It seems unpractical for me because i also cannot see this usage of this features because this is out of my knowledge.

Polymorphism is the most difficult part of OOP.

http://en.wikipedia.org/wiki/Polymor...ed_programming



Linux is the best OS in the world.
Reply With Quote