From 9f43c71bace18837d9113edf92aa7b735e30624e Mon Sep 17 00:00:00 2001 From: Andreas Conradi Nitschke Date: Tue, 7 Jan 2025 13:36:54 +0100 Subject: [PATCH] finished exercise --- csharp-fundamentals-class-members.Main/Core.cs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/csharp-fundamentals-class-members.Main/Core.cs b/csharp-fundamentals-class-members.Main/Core.cs index 855e8da..168a11d 100644 --- a/csharp-fundamentals-class-members.Main/Core.cs +++ b/csharp-fundamentals-class-members.Main/Core.cs @@ -20,31 +20,30 @@ public class Core //TODO: 1. Create an integer member named age with a value of 32 - public int age = 33; - + public int age { get; set; } = 32; //TODO: 2. Create a String member named firstName with a value of "Jane" - + public string firstName { get; set; } = "Jane"; //TODO: 3. Create a boolean member named isProgrammer with a value of true - - + public bool isProgrammer { get; set; } = 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 { get; set; } = 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 { get;set; } = "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; } }