0% found this document useful (0 votes)
71 views

Assignment - Class Test DOTNET C# CS205

The document provides details for an assignment in a DOTNET Technologies using C# course, asking students to create a graphic class hierarchy with abstract base classes and derived classes to define geometric shapes, and also explains how abstract and sealed classes are correlated. It also provides a class test asking students to illustrate the differences between jagged and single arrays, list the three pillars of object-oriented programming in C#, and define the ref and out method parameter modifiers.

Uploaded by

Kunal Ranjan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

Assignment - Class Test DOTNET C# CS205

The document provides details for an assignment in a DOTNET Technologies using C# course, asking students to create a graphic class hierarchy with abstract base classes and derived classes to define geometric shapes, and also explains how abstract and sealed classes are correlated. It also provides a class test asking students to illustrate the differences between jagged and single arrays, list the three pillars of object-oriented programming in C#, and define the ref and out method parameter modifiers.

Uploaded by

Kunal Ranjan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

DIT University Dehradun

Department of Computer Science & Engineering


(BACK/IMPROVEMENT)
Subject: DOTNET Technologies using C# (CS205) Semester: 4th (CSE/IT) Session: 2019-20 EVEN

Assignment Submission Date: 06-March-2020 Fri

1. Draw a hierarchy tree and write an interactive program in C# to create a Graphic class hierarchy:
create an abstract base class called Figure and derive two classes Close and Open from that. Declare
two more classes called Polygon and Ellipse using the class. Create derived classes Line and Polyline
from Open class. Define three objects (triangle, rectangle and pentagon) of the class Polygon. All
classes must have appropriate member functions including constructors and destructors.
2. How abstract and sealed are correlated? Explain with an example.

DIT University Dehradun


Department of Computer Science & Engineering
(BACK/IMPROVEMENT)
Subject: DOTNET Technologies using C# (CS205) Semester: 4th (CSE/IT) Session: 2019-20 EVEN

Class Test Date: 6-Mar-2020 FRI

1. Illustrate the difference between a jagged array and single arrays [Marks 5]
2. What are three pillars of OOPs in C#? [Marks 3]
3. What do you mean by Method Parameter Modifier? Define ref, out keyword. [Marks 2]

You might also like