Question: Create a console program in C#. 1. Create a class Person.cs - add three variables with property for each name(string), age(int), YearsToWork(int) - method YTK()

Create a console program in C#. 1. Create a class "Person.cs" - add three variables with property for each name(string), age(int), YearsToWork(int) - method YTK() YearsToWork = 65 - Age; 2. main() - enter name - enter age - show "You will work: __ years before you retire." 

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!