parksie
Sep 1st, 2000, 02:48 PM
My main reason for using C++ - virtual inheritance. It absolutely rocks. For example, you have a class Shape, which has a virtual function Draw. You have two classes inherited from that (Square and Circle), which implement the function in their own way. Now, you just store a Shape*, and you can set that to either a Square* or a Circle*, and without any changes, it will call the correct function.