I'm a bit confused about php classes and how extends work.
Say for example I want to make a blog.
So I have a class named blog with the following methods:
Now this class should handle the basics I want to do with my blog post etc.
I would then make a new instance of this class to display the blog to the page.
But now I want for example comments in this blog.
So I create a comment class, should this class extend the blog class ore not?
Because I think some properties of blog could come in handy in the comment class.
If this is all wrong please explain.