Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions Building the class library . Use the Project>Add New Item dialog to add a new class named Shape... Select Class and rename your class

image text in transcribed

Instructions Building the class library . Use the Project>Add New Item dialog to add a new class named Shape... Select "Class" and rename your class and file to be "Shape": public class Shape A few example members public int X Iget; private set; public int Y get; private set; public int Height Iget; set; public int Width Iget; set; 1 // Virtual method public virtual void Draw() ConsoleWriteLine(" Performing base class drawing tasks" e In the same file, add the following classes: A derived class Circle that overrides the Draw() method - A derived class Rectangle that overrides the Draw) method - A derived class Triangle that overrides the Draw() method - Make certain that each of these classes is defined as public. //I have the code for the main function, we just weren't given anything on how to override a method

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_2

Step: 3

blur-text-image_3

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

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions