Home » C# Programming » Properties

An Account class has a property called accountNo and acc is a reference to a bank object and we want the C#.NET code snippet given below to work. Which of the following options will ensure this functionality? acc.accountNo = 10; Console.WriteLine(acc.accountNo);

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!