Question: 4 . ) Lastly add 2 functions to your Student class, updateDB ( ) and deleteDB ( ) . These functions will update and delete

4.) Lastly add 2 functions to your Student class, updateDB() and deleteDB(). These functions will update and delete student data in the database.
Testing Code in Main0 method
Student s3= new Student();
s3.selectDB(6);
s3.deleteDB();
And
Student s4= new Student () ;
s4.selectDB(7);
//change any property in the student object s4
//the example below changes the lastname
//but you could change email, or gpa as well
s4.setLastname("Smith");
//s4.updateDB(); send any changes to the DB
s4.updateDB();
 4.) Lastly add 2 functions to your Student class, updateDB() and

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 Databases Questions!