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 trialAnusha Singh
Courses Plus Student 22,106 PointsI did not really understand what to do in this
Subclass the SequenceDetector class call the new class RepeatDetector. Can you help me out here?
namespace Treehouse.CodeChallenges
{
class SequenceDetector : base
{
public virtual bool Scan(int[] sequence)
{
return true;
}
}
}
1 Answer
Steven Parker
231,198 PointsIf you don't know how to even begin a challenge, it might be a good time to review a lesson or two.
The process of subclassing is presented in the Virtual Methods video. Your task here of using "SequenceDetector" to create "RepeatDetector" is very similar to the where the video uses "Invader" to create "ShieldedInvader".
Anusha Singh
Courses Plus Student 22,106 PointsAnusha Singh
Courses Plus Student 22,106 PointsThanks Steven, it helped a lot.