Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package SchoolSystem;
- public class Test {
- public static void main(String args[])
- {
- Teacher Tong = new Teacher("Tongov","8392130",new Course("MTM"));
- System.out.println("The name of theacher is:" + Tong.getName() +"\n" + "Subject which he is teach in:" + Tong.c.getSubject()+"\n" + "Successfull !!!!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement