-
8th May 2014, 06:25 AM
#1
please help me about c#
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:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks