Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
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...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