Question: 4 . ) Lastly add 2 functions to your Student class, updateDB ( ) and deleteDB ( ) . These functions will update and delete
Lastly add functions to your Student class, updateDB and deleteDB These functions will update and delete student data in the database.
Testing Code in Main method
Student s new Student;
sselectDB;
sdeleteDB;
And
Student new Student ;
sselectDB;
change any property in the student object s
the example below changes the lastname
but you could change email, or gpa as well
ssetLastnameSmith;
supdateDB; send any changes to the DB
supdateDB;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
