Rao Atiq

Rao Atiq

  • NA
  • 14
  • 9.9k

C#

May 6 2014 4:57 AM
Please tell me answer of this question? 
QUESTION 1:
You are required to write a C# program to show how to declare and use structures in the C#. For this you have to declare a structure Date and a class Program (which will perform the actual functionality of structure). You have to use enum for using month’s name in your program.
The skeleton of a structure is given below:
struct Date {
// Declare private variables for year, and day. // Declare a constructor which initializes the three variables. // Override a ToString() method to display the Date in Month Day Year format }
 
 
QUESTION 2:
Write a program to define an interface named IStudentData. The interface will consist of two functions named
showData and getData. Then write a class named StudentInfo which will implement the interface
IStudentData.
The information which you will get and display is given below:
Student Name:
Student ID:
Student DoB:
Study Program:
Admission Dated:

Answers (1)