Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago