Skip to content

andruolson/Classes-Exercise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exercise 1:

  • Create a class named Car - make sure it is public

In the Car class:

  • Create a Make property of type string that is public
  • Create a Model property of type string that is public
  • Create a Year property of type int that is public

In the Main method:

  • Create a new instance of the Car class
  • Set values in the properties for the object
  • Print the values of each property to the Console

About

.NET 6.0 template project for the Classes exercise at TrueCoders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%