Question: C# for beginners (Methods and Properties, Data types) WorkStation:- Visual Studio 2019 In this exercise you will develop a C# application that allows the user

C# for beginners (Methods and Properties, Data types)

WorkStation:- Visual Studio 2019

In this exercise you will develop a C# application that allows the user to handle a Windows service. Create a class named ServiceController. Create the following properties: CanShutDown, CanStop, MachineName, ServiceName, ServiceType, Status. Create the following methods: Start, Stop, Close, and ToString to return service controller object information in a nicely formatted string. Provide a constructor that allows the user to initialize ServiceController object information. Write a driver class to test the ServiceController class. The driver class (main class) interacts with the user and calls ServiceController properties and methods to handle the service. Provide interaction with user. Allow user to input service information and use service methods and properties. Output the results.

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!