Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UserDatabase {
- public void connectToDatabase() { // make database connection }
- public void displaySingleUserInfo(int userId) { // fetch user with userId info from the database }
- public void displayAllUsersInfo() { // display all the users in the database info }
- public void closeDatabaseConnection() { // close database connection and freeup resource }
- public void checkDatabaseConnectionStatus() { // check database connection status}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement