Created
April 17, 2012 08:02
-
-
Save tnngo2/2404341 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
namespace Students | |
{ | |
class StudentDetails | |
{ | |
private string _studName = "Alexander"; | |
private int _studId = 30; | |
public StudentDetails() | |
{ | |
Console.WriteLine("Student Name : " + _studName); | |
Console.WriteLine("Student Id : " + _studId); | |
} | |
} | |
} | |
namespace Examination | |
{ | |
class ScoreReport | |
{ | |
public string Subject = "Science"; | |
public int Marks = 60; | |
static void Main(string[] args) | |
{ | |
StudentDetails objStudents = new StudentDetails(); | |
ScoreReport objReport = new ScoreReport(); | |
Console.WriteLine("Subject: " + objReport.Subject); | |
Console.WriteLine("Marks: " + objReport.Marks); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment