Results 1 to 6 of 6

Thread: Inheritance

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2011
    Posts
    203
    Thanks
    7
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Inheritance

    Hello, nooby question but anyway! Trying to understand the point of inheritance. If I have a class fruit, I can always create:

    Fruit Banana(various parameters);

    So why create a banana class if I can simply put everything into the fruit class? If so just keep breaking classes down more and more, the way I see it, we'll just end up with a bunch of unique classes only good for one thing, so what's the point?

  2. The following user says thank you to Atomic_Sheep for this useful post:


Similar Threads

  1. C++ inheritance
    By yyiu002 in forum Newbie
    Replies: 3
    Last Post: 29th June 2010, 11:38
  2. inheritance
    By steiner in forum Qt Programming
    Replies: 4
    Last Post: 30th October 2007, 20:17
  3. inheritance
    By mickey in forum General Programming
    Replies: 11
    Last Post: 28th September 2007, 21:54
  4. How much inheritance do you use?
    By Michiel in forum General Programming
    Replies: 8
    Last Post: 1st August 2006, 22:29
  5. QSA and inheritance
    By jwintz in forum Qt Programming
    Replies: 1
    Last Post: 13th June 2006, 14:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.