×
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 DateOfBirth property to your class
< Previous
Next >
Goal
Add a DateOfBirth property to your class, which is of type DateTime.
using System; public class Person { public Person(string firstName, string lastName) { FirstName = firstName; LastName = lastName; } public string FirstName { get; set; } public string LastName { get; set; } public string GetFullName() { return FirstName + " " + LastName; } } public class Program { public static void Main() { } }
Reset
Verify
Page 15 of 20
< Previous
Next >
Loading packages and dependencies