How do i fix this

If you’re trying to learn about OOP, check this, probably will help you