/* * @topic T00955 Using "this" reference to pass object to a method * @brief Main driver creates a Product and calls print( ) */ package objectdemo; public class Main { public static void main(String[] args) { Product book = null; if ( book == null ) { System.out.println( "no book!" ); } // ask the user for a code or load book from a file... book = new Product(); book.print(); Product aBook = book; }//main }//class Main