Quantcast
Channel: Simple refactoring in Java (Basics) - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by akhil_mittal for Simple refactoring in Java (Basics)

Check the following code:public class BankAccount { int accountNumber; double balance; public BankAccount(int accountNumber) { // TODO Auto-generated constructor stub this(accountNumber, 0.0); } public...

View Article



Answer by CoronA for Simple refactoring in Java (Basics)

use thispublic BankAccount(int accountNumber) { this(accountNumber,0.0);}

View Article

Simple refactoring in Java (Basics)

I have these two constructors for creating BankAccount public BankAccount(int accountNumber , double balance) { // TODO Auto-generated constructor stub this.accountNumber = accountNumber; this.balance...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images