×
Log in
Twitter
Gmail
Facebook
.NET Fiddle
and
.NET Academy
shared account
Remember me
Log in
Sign up
or
Reset password
Search Tutorials
Log in
Sign up
About
Twitter
.NET Fiddle
Support
Contact Us
Classes
Exercise: Add a property to your class
< Previous
Next >
Goal
Add a string property to your class named Sound.
using System; public class Animal { public void Speak() { Console.WriteLine("The dog says woof!"); } } public class Program { public static void Main() { } }
Reset
Verify
Page 10 of 20
< Previous
Next >
Loading packages and dependencies