0% found this document useful (0 votes)
23 views2 pages

C# OOPS Excercise-3

The document discusses several programming assignments related to C# OOPS concepts like polymorphism, inheritance, constructors, abstract classes, interfaces, properties, delegates, indexers, events, generics, collections, and binary serialization. The assignments include creating bank account classes with deposits and withdrawals, assigning employee salaries and bands based on experience, displaying employee details, a departmental store shopping program with discounts, a travel agency program, swapping values of any data type using generics, and binary serialization of employee data.

Uploaded by

nani031nani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

C# OOPS Excercise-3

The document discusses several programming assignments related to C# OOPS concepts like polymorphism, inheritance, constructors, abstract classes, interfaces, properties, delegates, indexers, events, generics, collections, and binary serialization. The assignments include creating bank account classes with deposits and withdrawals, assigning employee salaries and bands based on experience, displaying employee details, a departmental store shopping program with discounts, a travel agency program, swapping values of any data type using generics, and binary serialization of employee data.

Uploaded by

nani031nani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

C# OOPS ASSIGNMENT

/* ---------------------------------- Polymorphism, Inheritance, Constructor, abstract Class----------------------


*/
1. Create an abstract class named Account (include methods like Deposit, Withdrawal
and properties like AvailableBalance, MinBalanceRequired)
a) Derive classes SavingAccount & CurrentAccount from Account. You can use some
additional properties & methods in these derived classes
b) In the main program, give an option to the user to create any type of account and then
give the options to Deposit, Withdraw & check balance. Also give a warning to user as soon
as Available balance goes below MinReqdBalance.

Use—Abstract Class, Properties, Constructors, User defined Exception, Function overloading.


Static Members

1. Write a Program for HR Department which will help them to assign annual salary
(variable salary + fixed salary) and Band, based on Employee’s total experience and
Salary in Previous Organization.

Experience 0- 5 ------------ Band A


Experience 6-10 ----------- Band B
Experience 10-12 and above----- Band C
Example: - An employee is having an experience of 4 years and previous salary is 4.2. Band
should be A and salary would be 30% of previous Salary + previous Salary.
15% Variable Salary + 85% Fixed Salary
Use --- Interface, Constructor, Properties, Nullable types and others related topics

1. Write a program to find the Employee details. Take necessary Inputs from user and
Display the Employee Details.
Organization
Employee
Programmer Manager HR
.Net Programmer Java Programmer
4) Write a program for Departmental Store. Calculate discount and other offers also. First
Screen Should be……..
1. Purchase
2. Exchange
3. Exit
If user goes for First option then……. Different categories like……..
1. Medicines
1. Stationary
1. Vegetables
1. Garments
If user go for any of the option then option list with price list and at last the complete list of
user shopping with all discount and different offers. Offers like 1 kg sugar free for 1000 rs
shopping and others.
Use- Delegated, Classes, Objects, Inheritance, Overriding, User Defined Exception, Indexers
and other required topics
//-----------------------------------------Properties, delegates, Indexer and
Events-------------------------------------
1. Write a Program for travel Agency to plan users Travel. Set location and Cost for
travel .(use properties )

//--------------------------------------------- Generics , Collations , Assemblies


--------------------------------------------
1. Write a program to swap any two values irrespective of their data type (Hint: Use
Binary)
1. What is Binary Serialization. Write a method that will serialize a class containing
Employee information. Write another method that will read the serialized data from file
and return the values stored earlier.

You might also like