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.