public class Class02 { public static void main(String[] args) { BankAccount stu1, stu2; // Define 2 object variables stu1 = new BankAccount(); // Create one BankAccount object // (with 3 data field // stu1.accNum, stu1.name, stu1.balance) stu2 = new BankAccount(); // Create another BankAccount object (with // stu2.accNum, stu2.name, stu2.balance) stu1.accNum = 12345; stu1.name = "Mary"; stu1.balance = 1000; stu2.accNum = 23456; stu2.name = "John"; stu2.balance = 1500; System.out.println( stu1.accNum + " " + stu1.name + " " + stu1.balance); System.out.println( stu2.accNum + " " + stu2.name + " " + stu2.balance); } }