You are here: Re: Abstract Legacy question « PHP « IT news, forums, messages
Re: Abstract Legacy question

Posted by Matthew Weier O'Phinney on 04/21/05 00:36

* Andy Pieters <mailings@vlaamse-kern.com>:
> This is kinda hard to say in words, so I'll give a little example
>
> Class A
> function x
> calls function guid
> function y
> function z
> function guid
> Class B extends A
> function y
> calls function x
> function guid
>
> So what I'm wondering is when class B calls its function Y, it will in its
> turn call function X (which is not overloaded in class B) and function X
> calls the function GUID from which class? Class A or Class B?

Since Class B overrides method guid, function x will call the method
from Class B.

--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация