Question: Write a C# Program that do the following: Abstract class Fruit with two attribute: name , color and abstract method display Child class Banana with
Write a C# Program that do the following: Abstract class Fruit with two attribute: name color and abstract method display Child class Banana with override method display that prints my name is banana and my color is yellow" Child class apple with override method display that prints my name is apple and my color is yellow and red" A class named program that contains the Main method with two objects banana, apple inside the main method The output should look like: I am banana and my color is yellow Iam apple and my color is red and yellow
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
