• Welcome to NamesLot.com Domain Name Forum

    NamesLot.com Domain Name Forum offers a fully open forum to discuss domain industry news and a 0% commission marketplace for you to buy and sell domain names.

    We have reorganized our Marketplace so now it is easier to get attention to your domain while it is also easier for buyers to find the right domain name.

    If you want us to add more threads to our marketplace, please contact us! Listing on our marketplace as always, 100% free! Register NOW or Login HERE!

Inheritance in PHP?

Status
Not open for further replies.
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,
 
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.



|


....................................................................
 
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.
 
Status
Not open for further replies.

Members online

No members online now.

Forum statistics

Threads
19,883
Messages
69,880
Members
44,590
Latest member
KRS_Infotech
Active members today
0
New members today
0
New threads today
13
New posts today
13

Follow NamesLot on Twitter!

NamesLot proudly supported by

NamesLot proudly supported by

Top