Bookmark and Share Post Reply  Post Thread 

Inheritance in PHP?
Author Message
clerisy
Junior Member



Posts: 33
Group: Registered
   
Cash: 0.00 Donate
Inheritance in PHP?




What type of inheritance that PHP supports???????????????????????


IT services company
01-27-2012 08:17 PM
Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply
Affiliate Banner
This is an ad revenue sharing forum
briensmith
Junior Member



Posts: 31
Group: Registered
   
Cash: 0.00 Donate
RE: Inheritance in PHP?

Hello,

PHP was originally created. The main implementation of PHP is now produced by The PHP Group and serves as the formal reference to the PHP language. PHP is free software released under the PHP License, which is incompatible with the GNU General Public License.

Thanks,

manchester united shirt
liverpool shirt
jersey

02-09-2012 01:35 AM
Send the author a private message Find all posts by this author Quote this message in a reply
vimaljaya
Member



Posts: 55
Group: Registered
   
Cash: 0.00 Donate
Big Grin  RE: Inheritance in PHP?

Similar to Java, PHP supports single inheritance. There is no multiple inheritance in php. Single inheritance means a class can extend only one parent class.

PHP also has interfaces which can be implemented if bunch of classes need to have similar functionality. An interface can be created containing methods with empty body. Implementing classes then must provide body to those methods.

When a class implements an interface, it is signing up a contract that it will provide implementation to methods declared in that interface.



pdms training centres chennai|pdms training centres chennai


....................................................................

02-16-2012 04:41 PM
Send the author a private message Find all posts by this author Quote this message in a reply
openxcellaus
Junior Member



Posts: 10
Group: Registered
   
Cash: 0.00 Donate
RE: Inheritance in PHP?

I have just started to learn PHP in advance and I am really not gone deeply till Inheritance. So its little difficult to reply because of a newbie.


Website Development Australia | eCommerce Website Design Australia
03-21-2012 08:01 PM
Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply

Bookmark and Share Post Reply  Post Thread 


Similar Threads
Thread: Author Replies: Last Post
Why Multiple inheritance is not supported in JAVA? praveen.p 0 04-25-2009 04:34 PM

View a Printable Version | Send this Thread to a Friend | Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:
Forum Jump: