// a coule of announcements: //1. Before leaving a lab, must confirm with a TA //2. practice submission for assignmet 0 (see Unix Manual) file name is very important!!! maxwindow.java vs MaxWindow.java //3. A1 TA office hours, see course annoucements. Use them! //4. quiz 1 on Monday-> // register your iclicker on the iclicker web by Fri night. // Recall: // Access modifiers: public, private // public: useable by anyone, anywhere // private: useable only within the class // OurJFrame has "makeSquare", "doubleWidth", and "getArea" // also we have written two different constructors for it! //let's write a class from scratch: "BankAccount" BankAccount ba = new BankAccount("Poor", "Guy", true, 1.5, 2100) ba.firstName //what's the problem? //it's private, cannot access! let's go and change it to "public" //let's make name public: BankAccount ba = new BankAccount("Poor", "Guy", true, 1.5, 2100) ba.name // //This is not a good idea in general! other can change directly the internal state of the object! //going back to private //let's write the getbalance and deposit method BankAccount ba = new BankAccount("Poor", "Guy", true, 1.5, 2100) ba.getBalance() ba.deposit(100000.0) ba.getBalance() //Press JavaDoc:Notice how the comments we write are used in Java doc. //you can use html tags there, e.g. this is bold