Assignment - Class Test DOTNET C# CS205
Assignment - Class Test DOTNET C# CS205
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.
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]