home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / ed8n1t2i / example.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  2.2 KB  |  64 lines

  1. //****************************************************************************
  2. // ---- version information ----
  3. //
  4. // Example.java          v 1.00 b1
  5. // Written by:           I. van Rienen / E-mail ivr@bart.nl
  6. // URL:                  http://www/bart.nl/~ivr
  7. // Initial release:
  8. // Released in public domain:
  9. //
  10. // ---- Description ----
  11. // Java class containing data and constructor for an example
  12. //
  13. // This program and the Java source is in the public domain.
  14. // Permission to use, copy, modify, and distribute this software
  15. // and its documentation for NON-COMMERCIAL purposes and
  16. // without fee is hereby granted.
  17. //
  18. //    Copyright 1996
  19. //
  20. //    Iwan van Rienen
  21. //    Joan Maetsuyckerstr. 145
  22. //    2593 ZG  The Hague
  23. //    The Netherlands
  24. //
  25. // I am not responsible for any bugs in this program and
  26. // possible damage to hard- or software when using this program.
  27. //****************************************************************************
  28. import java.awt.*;
  29.  
  30. class Example {
  31.     protected String Type;
  32.     protected String Description;
  33.     protected String Location;
  34.  
  35. //----------------------------------------------------------------------------
  36. // The constructor of a new example
  37. //----------------------------------------------------------------------------
  38.     public Example (String t, String d, String l) {
  39.         Type = t;
  40.         Description = d;
  41.         Location = l;
  42.     }
  43.  
  44. //----------------------------------------------------------------------------
  45. // Get the example type
  46. //----------------------------------------------------------------------------
  47.     public String getType() {
  48.         return Type;
  49.     }
  50.  
  51. //----------------------------------------------------------------------------
  52. // Get the example description
  53. //----------------------------------------------------------------------------
  54.     public String getDescription() {
  55.         return Description;
  56.     }
  57.  
  58. //----------------------------------------------------------------------------
  59. // Get the example location
  60. //----------------------------------------------------------------------------
  61.     public String getLocation() {
  62.         return Location;
  63.     }
  64. }