|
-
Sep 1st, 2000, 02:48 PM
#1
Thread Starter
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|