LAB_DOTNET
LAB_DOTNET
.
Q.18] Write a C# program to define a class Person with attributes name and birthdate. Drive the
classes Student and Instructor from Person. The Student class has an attribute course and the
Instructor class has an attribute salary. Write the class definitions, constructor and the member
function to display all information.
Q.19] Write a C# program to implement the following multiple inheritance using interface.
Q.20] Write a program to swap three integer and three float numbers using the concept of
Function overloading.
Q.21] Write a C# program to accept two 3 X 3 matrix from a user and perform matrix
multiplication.
Q.22] Write a C# program using a constructor and destructor to display student information
(Name, Age & course).
Q.23] Define an abstract class ArithmeticOperation with an abstract method
PerformOperation().Create two derived classes Addition and Multiplication to
implement the PerformOperation ()method to Addition & Multiplication.