Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
462 B
1
Indexable
Never
import java.util.*;

public class Test
{

   public static void main(String[] args) {

     Instructor i = new Instructor("Sam","Carlo","9876541320","House Number 10","Diamond Street","Nebraska","Kamuna",54321,"pqr@hotmail.com");

     i.print();

      Student s=new Student("Missy", "Smith", "1234567890", "House number 1", "Golden Street", "Dubai", "Dubai", 12345, "abc@gmail.com" );

      s.addCourse();


      s.print();  



   }

}