home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 14 / IOPROG_14.ISO / soft / sdkjava / sdkjava.exe / SDKJava.cab / Samples / native_raw / java / JFoo.java next >
Encoding:
Java Source  |  1998-03-05  |  605 b   |  33 lines

  1. // Copyright (c) 1997-1998 Microsoft Corporation.  All rights reserved.
  2. /*******************************************************************************
  3.  
  4.     JFoo
  5.  
  6.     class which is manipulated by JMain-called natively-implemented
  7.     methods.
  8.  
  9. */
  10. public class JFoo
  11. {
  12.     int    m_iVal ;
  13.  
  14.     JFoo()
  15.     {
  16.         System.out.println("JFoo() constructor without a parameter") ;
  17.         m_iVal = 3 ;
  18.     }
  19.  
  20.     JFoo(int iVal)
  21.     {
  22.         System.out.println("JFoo() constructor with a parameter") ;
  23.         m_iVal = iVal ;
  24.     }
  25.  
  26.     static void StaticMethod(long lVal)
  27.     {
  28.         System.out.println("StaticMethod(" + lVal + ")") ;
  29.     }
  30. }
  31.  
  32.  
  33.