Skip to content

Instantly share code, notes, and snippets.

@tnngo2
Created April 17, 2012 08:02
Show Gist options
  • Save tnngo2/2404341 to your computer and use it in GitHub Desktop.
Save tnngo2/2404341 to your computer and use it in GitHub Desktop.
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