8 The C# Language Part 7
8 The C# Language Part 7
IT
SEMESTER: V
The C# SUBJECT: Advanced Web Programming
Language SUBJECT CODE: USIT503
UNIT: I
TOPICS: Namespaces and Assemblies,
Inheritance
• To study the creation of user –
defined namespaces
LEARNING • To understand the importance of
assemblies
OUTCOMES • To learn the implementation of
inheritance
NAMESPACES
Namespaces can organize all the different types in the class library.
using MyCompany.MyApp;
PBL #4
• Write a program in C# to implement Multilevel inheritance with the following scenario:
• Class 1 should take student details and should have its own display function to display student
name and roll no.
• Class 2 should be inherited from Class 1 and should take the student’s marks details and must
have it’s own display function to display the marks taken as an input
• Class 3 should calculate the result and display the same using a display function.
• Finally, last class should have the “Main” method for executing the whole program.
THANK YOU!