Question: Assume you have a string variable named firstName and an int variable named age. Which of the following statements creates an instance of the Account

Assume you have a string variable named firstName and an int variable named age. Which of the following statements creates an instance of the Account class using the constructor with the following declaration?

public Account(string firstName, int age) { }

a. var account = new Account(firstName, age);

b. var account = Account(age, firstName);

c. Account account = new Account(age, firstName);

d. Account account = Account(firstName, age);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!

Q:

4x