summaryrefslogtreecommitdiff
path: root/boil/tests/ex42.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-17 21:42:42 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-17 21:42:42 -0600
commit6377548c75f05f0b8599dcfb8d61a56240692334 (patch)
treed763324a175106909188f08b3ccfb7953964afc7 /boil/tests/ex42.java
parentf121f24a80d49e9bacb890d729f0ae64047ed6d8 (diff)
Add all of the tests I forgot to add
Diffstat (limited to 'boil/tests/ex42.java')
-rw-r--r--boil/tests/ex42.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/boil/tests/ex42.java b/boil/tests/ex42.java
new file mode 100644
index 0000000..05af17a
--- /dev/null
+++ b/boil/tests/ex42.java
@@ -0,0 +1,26 @@
+class ex42 {
+ public static void main(String[] z) {
+ A a ;
+ a = new A() ;
+ System.out.println(a.Init()) ;
+ }
+}
+
+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 ;
+ }
+
+}