Chained Subclassing example

<?php

/*Lets discuss about chained subclassing … the main theme of chained subclassing is very simple .. suppose you are a child your parents then your grandparents then your great-grandparents … this called chain .. Below i give an example of chained subclassing ..
*/
class great_grandpa
{
}

class grandpa extends great_grandpa
{
}

class father extends grandpa
{
}

class boy extends father
{
}
/*I think now you got a clear concept about the chained subclassing …*/
?>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s