Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. public class polyRun {
  2.     //polymorphism
  3.     //dito naka compile ang 3 class(studName. studCourse. studSection)
  4.     public void polyRun(){
  5.         studName studentInfo = new studName();
  6.         studName course = new studCourse();
  7.         studName section = new studSection();
  8.        
  9.         studentInfo.studInfo();
  10.         course.studInfo();
  11.         section.studInfo();
  12.     }
  13.    
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement