1、public Class Student
2、public static int sum
3、new Student();
4、StudentDemo st
如有帮助,请采纳呀!!!
1、class Student
3、new Student()
不知道题主有没有真正尝试过,如果是一个文件中,是不可能使用定义类时只能存在一个public,上面的题目如果是在一个文件中,第一题就不应有public!