Advertisement
sergAccount

Untitled

Jul 10th, 2021
738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.83 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.mycompany.ex18;
  7.  
  8. /**
  9.  *
  10.  * @author student
  11.  */
  12. public class Main {    
  13.     //
  14.     public static void printInfo(Callback c){
  15.         c.printInfo();
  16.     }
  17.     //
  18.     public static void main(String[] args) {
  19.        
  20. //        Callback c;
  21. //        //c = new Callback();
  22. //        c = new Client();        
  23. //        c.callback(10);
  24. //        
  25. //        Callback c1 = new Client();                
  26. //        Client c2 = new Client();          
  27.           Client client = new Client();
  28.           SuperClient superClient = new SuperClient();
  29.          
  30.           printInfo(client);
  31.           printInfo(superClient);
  32.     }
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement