Question: Craete a program in C# 1. Create a class DSC. -- One data memeber: private string schoolName, set default value to Daytona State College. Create

Craete a program in C#

1. Create a class "DSC". -- One data memeber: private string schoolName, set default value to "Daytona State College". Create a property for it. -- Create a method "public virtual string ShowAddress()", return " 1200 W. International Speedway Blvd., Daytona Beach, Florida 32114 "; 2. Create a class "Campus", inheritate "DSC". -- One data memeber: private string campusName. Create a property for it. -- Create a constructor "public Campus(string cName)", set value for campusName. -- override ShowAddress(), return " 1770 Williamson Blvd., Daytona Beach, Florida 32117 "; -- Create "public string Departments()", return "Computer Scinece Department, Emergency Care Department, Police Academy"; -- override ToString(), use above properties and methods to display the following result when it is called. Daytona State College Advanced Technology College is located at 1770 Williamson Blvd., Daytona Beach, Florida 32117, it has Computer Scinece Department, Emergency Care Department, Police Academy 3. In main() static void Main(string[] args) { Campus atc = new Campus("Advanced Technology College"); Console.WriteLine(atc.ToString()); }

OUTPUT Craete a program in C# 1. Create a class "DSC". -- One

Select C:\WIND Daytona State College Advanced Technology College is located at 1770 Williamson Blvd., Daytona Beach, Florida 32117 it has Computer Scinece Department Police Academy Emergency Care Department Press any key to continue

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!