Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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();
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions