0

What's wrong with this program?

public class Classroom { void learn () { System.out.println("receiving..."); } } class MeetUp { public static void main (String[]args) { Student newbie = new Student(); newbie.learn(); } }

5th Oct 2018, 10:04 PM
Strovosky
Strovosky - avatar
1 Answer
0
Never mind, I got it. I have to create an object off a class. 😀
5th Oct 2018, 10:21 PM
Strovosky
Strovosky - avatar