Re: [NF] C#: Single inheritance

Author: mbsoftwaresolutions@mbsoftwaresolutions.com

Posted: 2017-05-18 at 12:00:54

On 2017-05-18 08:44, Edward Leafe wrote:

> On May 18, 2017, at 6:33 AM,

> mbsoftwaresolutions@mbsoftwaresolutions.com wrote:

>>

>> Maybe it was Python learning. I did start reading a Java book but I

>> don't think it was that. Wherever it was, I recall reading that the

>> classes listed earlier (left) had dominance over those listed after,

>> so if both class parents had the same method (or was it property?),

>> whichever class was listed first (leftmost) would be the one that got

>> called/referenced.

>

> Exactly. When you call a method not defined in the current class, it

> will look it up from the super classes in order until the method is

> found.

In Java, Python, or both?

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/fa6b889d9e2a4b56eb000cfa45208692@mbsoftwaresolutions.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2017 mbsoftwaresolutions@mbsoftwaresolutions.com