Is that you cant call setStudents(int), or setProfessors(int) before the constructor has exited. I know its kind of confusing but while you're inside the constructor, an object of the class has not been constructed yet, therefore you can't call any non-static methods of this class from inside the constructor.
Originally posted by karthi keyan:
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton