Question: C# object oriented programming ! 1 Problem Definition This lab sheet covers the section on Mastering Inheritence and Composition from the course on Concepts of

C# object oriented programming !

C# object oriented programming ! 1 Problem Definition This lab sheet covers

1 Problem Definition This lab sheet covers the section on Mastering Inheritence and Composition from the course on Concepts of Object-Oriented Programming (SE 307). These tasks can be done in Visual Studio on the local machine. See the Week 13 Course Resources overview for the details. 1.1 Problem 1 Assume that you have a Shape class. From this class you can derive Circle and Rectangle shapes. Note that, Circle and Rectangle classes have different area calculations. Moreover, Shape class implements interfaces called Movement and Comparison. Movement interface has a method called move specifies how many units the shape will move and differs in each shape instance. Comparison interface has a method called compare and differs in each shape instance. According to that information, create your abstract base class, derived classes and interfaces (When you compare two objects, they should be instances of same classes)

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!