I need help with properties - Module Cards numbers
The program that you are given must generate the account number on the bank card. But something is wrong. Create a get property to access the corresponding class member and also set the output. To execute the output you must pass the property to the Console.WriteLine () method. I tried to do it this way but I get an error. This is my code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { Card card1 = new Card(); //fix the exit Console.WriteLine(card1.accountNum); } } class Card { private string accountNum = "0011592048120"; // create a property to get the account get { return accountNum; } } }