package sample_java_package_1;
public class SampleClass_1 {
public void TestAlias(Test obj){
obj.num = 100;
}
public static void main(String[] args) {
Test obj1 = new Test();
SampleClass_1 obj2 = new SampleClass_1();
obj1.num = 200;
System.out.println(obj1.num);
obj2.TestAlias(obj1);
System.out.println(obj1.num);
}
}
class Test{
float num;
}
public class SampleClass_1 {
public void TestAlias(Test obj){
obj.num = 100;
}
public static void main(String[] args) {
Test obj1 = new Test();
SampleClass_1 obj2 = new SampleClass_1();
obj1.num = 200;
System.out.println(obj1.num);
obj2.TestAlias(obj1);
System.out.println(obj1.num);
}
}
class Test{
float num;
}