Submit Your Article Forum Rules

Results 1 to 2 of 2

Thread: inheritance

  1. #1
    Member
    Join Date
    Mar 2005
    Posts
    30

    inheritance

    Hello firends

    In C++,We can use multiple inheritance.

    But in PHP 5,A class can inherit from only one parent class.What is advantage of this?

  2. #2

    Re: inheritance

    Quote Originally Posted by abalfazl
    In C++,We can use multiple inheritance.

    But in PHP 5,A class can inherit from only one parent class.What is advantage of this?
    Hello,

    Multiple inheritance can cause a lot of problems. See http://ozark.hendrix.edu/~burch/csbs...ltinherit.html for a first glance on the issues. That is the reason why many modern OO languages, such as Java, C#, Ada 95 and PHP5, do not support it. There is, however, an ongoing heated debate amongst OO experts on the benefits and problems involved in multiple inheritance.

    best regards

    Sam
    Software-Pointers.com - Directory of Software Development Sites - Free submission.

Similar Threads

  1. Learn CSS: Introduction to Inheritance, Specificity, and Ca
    By WPW_Feedbot in forum Graphics & Design Discussion Forum
    Replies: 0
    Last Post: 07-25-2005, 01:02 PM
  2. CSS Inheritance - Confusing IE Behaviour
    By ADAM Web Design in forum Graphics & Design Discussion Forum
    Replies: 1
    Last Post: 04-12-2005, 08:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •