Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.mycompany.ex18;
- /**
- *
- * @author student
- */
- public class Main {
- //
- public static void printInfo(Callback c){
- c.printInfo();
- }
- //
- public static void main(String[] args) {
- // Callback c;
- // //c = new Callback();
- // c = new Client();
- // c.callback(10);
- //
- // Callback c1 = new Client();
- // Client c2 = new Client();
- Client client = new Client();
- SuperClient superClient = new SuperClient();
- printInfo(client);
- printInfo(superClient);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement