TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rao Atiq
NA
14
10k
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:
Reply
Answers (
1
)
C# Assignment
navigate in record form