Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# Intermediate C# Polymorphism Virtual Methods

Help with this please I missed one months payment and now I'm back on and I'm lost

When I try to watch the priviews videos to recap and what I got so far I keep getting and error and now I'm stuck in a challenge that I have no idea what to do

SequenceDetector.cs
namespace Treehouse.CodeChallenges
{
    class SequenceDetector
    {
        public bool Scan(int[] sequence)
        {
            return true;
        }
    }
}
RepeatDetector.cs
namespace Treehouse.CodeChallenges
{
    class SequenceDetector.Scan
    {
    }
}

1 Answer

Steven Parker
Steven Parker
231,269 Points

You'll need to discuss any payment issues directly with the Support folks.

But you can make a method virtual just by adding the word "virtual" to the declaration (right after the word "public" in this case).

lol the payment situation was on my part I couldent afford to pay it last month so I'm basecly a month behind I'm doing this personaly on my own time I don't go to school for this I just want to learn for a future carrer by thanks a lot for the response