Problem creating a webpage in OOP pattern?
Posted
by Starx
on Stack Overflow
See other posts from Stack Overflow
or by Starx
Published on 2010-05-11T15:34:42Z
Indexed on
2010/05/11
15:44 UTC
Read the original article
Hit count: 199
php
I want to develop a website in OOP pattern, but I am stuck in a point whether I need to inherit from multiple classes.
For example I have a main class "index" this class has several methods which need to inherited from other classes and I have created seperate classes for it like
class "banner", class "content", class "footer"
Not only this but class "content" has several methods to be inherited from other classes like
class "gallery", class "news", etc
I found out that multiple inheritance is not allowed, and using interface I cannot write codes in its methods, so how can i achieve a solution for this problem.
© Stack Overflow or respective owner