Question: I need C# code for the provided task. Thanks in advance for helping. TASK: Course Title: Object Oriented Programming 2 (C#) Lab Task -:

I need C# code for the provided task. Thanks in advance for helping. TASK: Course Title: Object Oriented

I need C# code for the provided task. Thanks in advance for helping. TASK: Course Title: Object Oriented Programming 2 (C#) Lab Task -: Developing a basic C# program with Inheritance, Association and Polymorphism. Look at the following class notations and class diagram carefully, and develop the program. BookShop String isbn String book Title String authorName double price int availableQuantity Book Class Diagram void setIsbn(String isbn) void setBook Title(String book Title) void setAuthorName(String authorName) String getlsbn() String getBook Title() String getAuthorName() double getPrice() int getAvailableQuantity() void addQuantity(int amount) void sellQuantity(int amount) void showDetails() Book Book() Book(String isbn, String bookTitle, String authorName, double price, int availableQuantity) void setPrice(double price) void setAvaiable Quantity(int availableQuantity) StoryBook TextBook. StoryBook String category StoryBook() StoryBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity, String category) void setCategory(String category) String getCategory() TextBook int standard TextBook() TextBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity, int standard) void setStandard (int standard) int getStandard() BookShop String name Book books[]//size of array should be 100. BookShop() BookShop(String name) void setName(String name) String getName() boolean insertBook(Book b) boolean removeBook(Book b) void showAllBooks() Book searchBook(String isbn) Start The Start class contains the main method. Inside the main method, create Five objects of StoryBook, Five objects of TextBook and One object of BookShop. Demonstrate all the methods and constructors.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This task involves creating a basic C program that demonstrates the principles of inheritance association and polymorphism Based on the class diagram and the description provided well need to define s... View full answer

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 Programming Questions!