class Dog() { def bark1 = println("bark"); def bark2 = { println("bark"); } def bark3: Unit = { println("bark"); } def bark4() = println("bark"); } val dog = new Dog(); dog.bark1; dog.bark2; dog.bark3; dog.bark4; dog.bark4();
Sunday, September 23, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment