Created
May 4, 2012 06:57
-
-
Save tnngo2/2592720 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// StudentDetails.cs | |
partial class StudentDetails | |
{ | |
public void Display() | |
{ | |
Console.WriteLine("Student Roll Number: " + _rollNo); | |
Console.WriteLine("Student Name: " + _studName); | |
} | |
} | |
// StudentDetails1.cs | |
partial class StudentDetails | |
{ | |
private int _rollNo; | |
private string _studName; | |
public StudentDetails(int num, string name) | |
{ | |
_rollNo = num; | |
_studName = name; | |
} | |
} | |
public class Students | |
{ | |
static void Main(string[] args) | |
{ | |
StudentDetails objStudents = new StudentDetails(20,"Frank"); | |
objStudents.Display(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment