Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
    Bookmark Topic Watch Topic
  • New Topic

Class Header and Setup a Driver For it

 
jason tourne
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Report post to moderator
I need to fill in the following blanks to create a class header for the class Teacher. Also I need to code the main method to turn Teacher into a driver class.

____ _____ ____{

____ ____ _____ ____(String{}

____){

}
}

What I think I got so far is that the first three lines should be public class Teacher, but don't know the rest.
 
Paul Clapham
Sheriff
Posts: 21945
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
Yes, that's right. As for the rest... what's a "driver" class?
 
jason tourne
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Report post to moderator
its just a class that contains a main
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Report post to moderator
Again, please don't post the same message multiple times. I'm locking this one - discussion can continue on the original thread.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!