Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started