Question: Need assistance with the following Please respond using netbeans only Build a Customer Business Object .This class will have 6 properties, custId, custPassword, custFirstName, custLastName,

Need assistance with the following

Please respond using netbeans only

Build a Customer Business Object.This class will have 6 properties, custId, custPassword, custFirstName, custLastName, custAddress and custEmail.Build an empty args Constructor in the Customer class that initializes all properties to 0 or "". Also build a constructor that takes all 6 args and set the appropriate properties. Then build the following 3 methods such as

1.)selectDB(custID); //to find a customer's info in the DB

The Database I am using is JavaDB in which I have already set up the database for information below

To Test the selectDB() method use this code in the main():

Customer c1 = new Customer();

c1.selectDB(custId);

c1.display();

2.)insertDB(custId, custPassword, custFirstName, custLastName, custAddress, custEmail)// to insert a new Customer in the DB

3.)deleteDB();//this method will delete the Customer from the DB

From there I would need help with following below

Now build an Account Business Object.This class will have 4 properties, acctNo,custId, type and balance.Build an empty args Constructor in the Customer class that initializes all properties to 0 or "".Also build a constructor that takes all 4 args and set the appropriate properties. Then build the following 3 methods:

Please advise on method.

1.)selectDB(acctNo); //to find a account's info in the DB

2.)insertDB(aNo, cid, ty, bal)// to insert a new Account into the DB

3.)deleteDB();//this method will delete the current Cust from the DB

To Test the selectDB() method use this code in the main():

Account a1 = new Account();

a1.selectDB(acctNo);

a1.display();

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!