20-CS-694 Advanced Programming Techniques Spring 2012
Java Primer

Interfaces, Exceptions, Graphics, Animation, Threads, Reflection, Networking, RMI, JDBC, JNI

C++ to Java

    File       Description
    prog1.cpp       Simple Queue Class implementation in C++
    prog2.cpp       Add a pointer to function to keep the Queue class general
    prog3.cpp       Virtual functions allow many different objects to be enqueued
    prog4.cpp       Test of the virtual function implementation with three classes
    Prog5.java       Java version of the above C++ code
    prog6.cpp       Employee hierarchy in C++ - calling superclass constructor and methods
    Prog7.java       Java version of the above C++ code
    prog8.cpp       Runtime changeable locator function for database of employees in C++
    Prog9.java       Java version of the above using interface in place of pointer-to-function
    prog10.cpp       Multiple inheritance in C++: effect of non-virtual functions
    prog11.cpp       Multiple inheritance in C++: effect of virtual functions
    Prog12.java       Multiple inheritance workaround in Java version of above
    prog13.cpp       Employee hierarchy, multiple inheritance
    prog14.cpp       A slight change in above wreaks havoc - illustration of mult. inherit. danger
    Prog15.java       A Java counterpart to the above.
    Prog16.java       Read from files, exceptions, and arrays in Java
    Prog17.java       Static function in Java