Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started