TRIBHUVAN UNIVERSITY
RATNA RAJYA LAXMI CAMPUS
Exhibition Road, Kathmandu
DotNet Technology
(CACS 302)
Lab Sheet-5
Title: Concept of Abstract Class, Method,
Inheritance, Property and Indexer
Submitted by: Submitted by:
Name: Ajaya Bhattarai Mr. Bhupendra Ram Luhar
Roll no.: 02(A)
BCA 5th Semester Signature:………………..
Date: 2082/02/04 Date:……………………..
Lab Date Topic Name Signature
No.
a) Write a C# program to illustrate the
concept of abstract class and
method.
b) Write a C# program to implement
concept of following type of
inheritance:
• Single-Level Inheritance
• Multi-Level Inheritance
• Hierarchical Inheritance
• Multiple Inheritance using
interface
05 2082/02/04
c) Write a C# program to create
property that illustrates various type
of property.
d) Write a C# program to display the
BCA 5th Semester subject name
using indexer.
e) Create a simple Contact
Management System that store and
retrieves contact information (like
name and phone number) using
indexer.
Q.no.1- Output:
Q.no.2a- Output:
Q.no.2b- Output:
Q.no.3- Output:
Q.no.4- Output:
Q.no.5- Output: