Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class superClass {
- public static void main(String[]args){
- subClass x = new subClass();
- x.display();
- System.out.println("Welcome to Java Methods");
- x.display();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement