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
560 B
Java

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