Question: this is java Which of the following lines of code instantiates an object? public class Account{ private double balance, // Line 1 // Line 2


this is java
Which of the following lines of code instantiates an object? public class Account{ private double balance, // Line 1 // Line 2 public Account( double initialBalance ) { // Line 4 balance initialBalance, // Line 5 } } public class Transactions Line 9 public static void main(String[] args) { // Line 10 Account checking; // Line 11 checking = new Account: // Line 12 Line 1 Line 2 Line 4 Line 5 Line 9 Line 10 Line 11 Line 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
