Computer Science 225
Advanced Programming

Spring 2017, Siena College

StaticBinding BlueJ Project

Click here to download a BlueJ project for StaticBinding.


StaticBinding Source Code

The Java source code for StaticBinding is below. Click on a file name to download it.


StaticBinding.java

/*
 * Example StaticBinding by Darren Lim
 *
 */

public class StaticBinding {

    public static void print(StaticBinding s)
    {
        System.out.println("StaticBinding");

    }
    
    public static void print(SB2 s)
    {
        System.out.println("SB2");
    }

    public static void main(String args[])
    {
        StaticBinding sb = new SB2();
        print(sb);
    }
}

class SB2 extends StaticBinding
{
}