https://github.com/truecodersio/classes-exercise
.NET 6.0 template project for the Classes exercise at TrueCoders
https://github.com/truecodersio/classes-exercise
Last synced: about 1 year ago
JSON representation
.NET 6.0 template project for the Classes exercise at TrueCoders
- Host: GitHub
- URL: https://github.com/truecodersio/classes-exercise
- Owner: truecodersio
- Created: 2022-09-07T01:50:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-28T18:10:57.000Z (over 1 year ago)
- Last Synced: 2025-04-07T07:11:21.847Z (over 1 year ago)
- Language: C#
- Size: 122 KB
- Stars: 0
- Watchers: 2
- Forks: 386
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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