Question: Part-1 (Classes, Objects, Inheritance, Polymorphism, Overloading, Overriding) ___________________________________________________________________________ Create a C# console app with a base class and one or more derived classes to represent

Part-1

(Classes, Objects, Inheritance, Polymorphism, Overloading, Overriding)

___________________________________________________________________________

Create a C# console app with a base class and one or more derived classes to represent some real-world entity such as a bank with customer accounts, student with different registered courses etc.

The base class will:

  1. Create a total of 3 member variables for the class by selecting the appropriate data types for each field. Each of these 3 variables needs a data type.
  2. Include at least two different constructor methods including the default constructor (no argument constructor).
  3. Create and override the toString() method to display the values of an object in a formatted manner.

The derived class will:

  1. Create a total of 4 member variables for the class by selecting the appropriate data types for each field. Each of these 4 variables needs a data type.
  2. Include at least constructor methods including the default constructor (no argument constructor) that will create the base class objects.
  3. Create and override the toString() method to display the values of the base and derived class in a formatted manner.

Implement using a C# console application the following:

  1. Instantiate n number of objects.
  2. Store the objects into an array.
  3. Utilize the toString() method to display the content of an object created from the array.

Include the below in your project report:

  1. Base class, derived classes and test program
  2. Screenshots of output generated from the application. ___________________________________________________________________________ Part-2

(Graphical User Interfaces)

___________________________________________________________________________

Create a C# Windows form app that demonstrates various controls and components that you have learnt. You can also include User Controls in your project.

Design form using the classes from Part-1. Create a form that consists of the following:

  • Form title: Title of your project.
  • Design your form by using different controls like TextBox, Label, Button, ListBox, DateTimePicker, Menus and Toolbars, etc. (Minimum five different user interface controls should be used.
  • Use event handlers to activate and implement the GUI components/controls. (Minimum three different events should be created)

Include the below in your project report:

  • Screenshots of all output generated from the application.
  • Code for the program

___________________________________________________________________________ Part-3

(Introduction to LINQ)

___________________________________________________________________________

Using the concepts you have learned about collections introduce the concept of List to store the objects created from Part-2.

Modify the form designed in Part-2 to include the following:

  • A control to display the objects in sorted order based on any one member field using the features of LINQ with arrays
  • A control to display the objects details obtained by filtering the List using LINQ statement.

Include the below in your project report:

  • Screenshots of all output generated from the application.
  • Code for the program.

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!