studentdemo.java

on 2:09 PM

import java.io.*;
class student
{
int rollno;
string name;
long marks;
char grades;
void fill details()
{
roll no=121;
name='uzair';
marks=270;
grades='A';
}
void showdetails()
{
system.out.println("roll no:"=roll name);
system.out.println("name:"+name);
system.out.println("marks:"+marks);
system.out.println("grades of the students is grades");
}
}
class studentdemo
{
public static void main(string a[])
{
system.out.println("this is main menu");
{
studnet st = new student();
st.filldetails();
st.showdetails();
}
}

0 comments:

Post a Comment