summaryrefslogtreecommitdiff
path: root/base/ex42.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-26 15:50:38 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-26 15:50:38 -0600
commit1851f5e76018ec1df3b55dce6cc9a64c9497bf7a (patch)
tree30f629f7b137a494d4202487f4e22df2d9456481 /base/ex42.java
parent012298517078170762112abe2654dc69b2f146e1 (diff)
Rearrange directory structure
Diffstat (limited to 'base/ex42.java')
-rw-r--r--base/ex42.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/base/ex42.java b/base/ex42.java
new file mode 100644
index 0000000..9ee7efa
--- /dev/null
+++ b/base/ex42.java
@@ -0,0 +1,26 @@
+class ex42 {
+ public static void main(String[] z) {
+ A a ;
+ a = new A() ;
+ System.out.println(a.Init(42, 10000, true, 156, 123)) ;
+ }
+}
+
+class A {
+
+ int age ;
+ int Salary ;
+ boolean Married ;
+ int weight ;
+ int height ;
+
+ public boolean Init(int v_age, int v_Salary, boolean v_Married, int v_weight, int v_height) {
+ age = v_age ;
+ Salary = v_Salary ;
+ Married = v_Married ;
+ weight = v_weight ;
+ height = v_height ;
+ return true ;
+ }
+
+}