Answer to Question #25734 in C# for biswajyoti kalita
using System;
class Student
{
private string name = "Marcus Trott";
private double marks = 65.0;
public void DispName()
{
System.Console.WriteLine("Name: ", name);
}
public void DispMarks()
{
System.Console.WriteLine("Marks: ", marks);
}
}
class MainClass
{
static void Main()
{
Student s= new Student();
string n = s.DispName();
double m= s.marks;
}
}
0
Answer in progress...
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C#
Comments
Leave a comment