Quote:
My requirement is can i access the DisplayData() method in main class
You actually can, the following code should (and it
does, on my system) compile and run fine.
static void Main(string[] args)
{
Csstudent cs = new Csstudent(101, "Sha", 56, 96);
cs.StudentDetails();
cs.DisplayData();
}