HomeChallengesRepsProblemsLeaderboardTake a challenge

Make it compile

Eight compile errors stand between you and a running program. Fix every one without changing what it does — and fix the caller, not the access modifier.

Beginner10 min on the clock5 graded checks · 100 pointsFrom Procedures to Objects
Graded by reading your code against the checklist below.

What you build

  • Close every block and end every statement
  • Give every method a return type, or void
  • Make the methods Main calls public, and keep the fields private
  • Stop Main assigning to a field: make a new calendar instead
  • Make Main the static entry point
  • Make the if condition a true-or-false question

Done means

Every block closes, every method has a return type, Main is static, conditions are Boolean, and the fields stay private.

How it is graded

Published in full, before you start — every point is one of these and there is nothing else.

  1. Every block closes and every field declaration ends+30What makes C# compile
  2. Every method declares what it returns+20What makes C# compile
  3. Fields stay private; the methods Main needs are public+20Objects that protect themselves
  4. Main is the static entry point+15What makes C# compile
  5. The if asks a yes-or-no question+15What makes C# compile

What it teaches

The rest of From Procedures to Objects