© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
13 replies
Dahyerin

✅ Confused by constant errors regarding class extension.

Hi all, for my uni course, I need to code a game. I have chosen TicTacToe, but it needs to use different design elements (Factory/Template/Strategy) the more that are successfully implemented are better. I have what I think is correct implementation of my Template method classes, but I can't get the rest of the program to talk to the methods within the extended classes. It throws up the error that an object must be passed to them, but I don't want to pass an object to it, I just want the method to run when it is called by another method/class. I have attached two images that show the issue I am running into - this is a problem amongst the whole program, but its the same error. What have I done wrong? I also don't know how to paste code into this, without it looking weird.
Thanks for your help - I am super stressed.
Broken_program_start.JPG
Menu_function.JPG
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ confused by this error
C#CC# / help
2y ago
✅ Need help regarding variables and class.
C#CC# / help
3y ago
interface vs extension method vs method in class
C#CC# / help
3y ago