01: /* ****************************************************************************
02: * ConstructExample.java
03: * ****************************************************************************/
04:
05: /* J_LZ_COPYRIGHT_BEGIN *******************************************************
06: * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
07: * Use is subject to license terms. *
08: * J_LZ_COPYRIGHT_END *********************************************************/
09:
10: package examples;
11:
12: public class ConstructExample {
13:
14: int mInt = 0;
15: String mString = "";
16: double mDouble = 0.0;
17:
18: public ConstructExample(int i) {
19: mInt = i;
20: }
21:
22: public ConstructExample(int i, String s, double d) {
23: mInt = i;
24: mString = s;
25: mDouble = d;
26: }
27:
28: public String getInfo() {
29: return "int: " + mInt + "\n" + "string: " + mString + "\n"
30: + "double: " + mDouble + "\n";
31: }
32: }
|