You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
571 B
Java

Account
package com.ack.learning.examples.account;
public class Account {
public Account() {
System.out.println( "created an account object" );
}
public Account( String name ) {
System.out.println( "created account -> " + name );
}
public Account( String name, double amount ) {
System.out.println( "account " + name + " with " + amount );
}
public static void main( String[] args ) {
Account lloyds = new Account();
Account tsg = new Account( "barry" );
Account hsbc = new Account( "jerry", 25d );
}
}