From c5a30ca1ed01365a739806517a963909d15b692d Mon Sep 17 00:00:00 2001 From: Jone Hjorteland Date: Tue, 7 Jan 2025 13:26:58 +0100 Subject: [PATCH] Finished exercise --- .../Core.cs | 31 +++++-------------- 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/csharp-fundamentals-class-members.Main/Core.cs b/csharp-fundamentals-class-members.Main/Core.cs index 855e8da..f0111ea 100644 --- a/csharp-fundamentals-class-members.Main/Core.cs +++ b/csharp-fundamentals-class-members.Main/Core.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using static System.Runtime.InteropServices.JavaScript.JSType; - -namespace csharp_fundamentals_class_members.Main +namespace csharp_fundamentals_class_members.Main { public class Core { @@ -18,33 +11,23 @@ public class Core // Its name can be anything as long as that name isn't already in use. public int answerToTheUltimateQuestion = 42; - //TODO: 1. Create an integer member named age with a value of 32 - public int age = 33; - - + public int age = 32; //TODO: 2. Create a String member named firstName with a value of "Jane" - - + public string firstName = "Jane"; //TODO: 3. Create a boolean member named isProgrammer with a value of true - - + public bool isProgrammer = true; //TODO: 4. Change the value below so that the tests pass. Check the README.md file for instructions on // running and reading tests - public int firstNumber = 109; - - + public int firstNumber = 9182; //TODO: 5. Change the value below so that the tests pass - public string firstString = "Ruby is to Python what car is to carpet."; - - - + public string firstString = "Java is to Javascript what car is to carpet."; //TODO: 6. Change the visibility below so that the tests pass - private bool isVisible = true; + public bool isVisible = true; } }