Presentation is loading. Please wait.

Presentation is loading. Please wait.

KFT1 Task 4 GETTING STARTED

Similar presentations


Presentation on theme: "KFT1 Task 4 GETTING STARTED"— Presentation transcript:

1 KFT1 Task 4 GETTING STARTED
Pubali Banerjee, PhD

2 MYSQL Installation Download and install the latest version of MYSQL
Don’t forget to note down the root password From a command prompt window login to MYSQL as root Run the SQL scripts to create the databases Add the .jar file to the project in NetBeans.

3 MediaManager Create the database by running the SQL script
Then open the project; add the .jar file Run the project and make sure it is working

4 Concepts Abstract class: A class that has at least one abstract method
Abstract method: A method with no implementation, followed by no braces; followed by a ‘;’ Cannot create an instance of an abstract class

5 Inheritance Super class: the base class
Sub class: inherited class. If this is a concrete class, inherited from an abstract class, then there needs to be implementation for all the abstract methods

6 MediaManager: specifications
Description: repository of media: DVDs and VHS tapes; user should be able to add information about new media and retrieve info from the database. Base class: media: abstract class Inherited classes: VHS and DVD Connect class: handles database connection MediaManager class: main menu and overall management

7 Media class Methods: Concrete methods: setters and getters
Abstract methods: calccost(), add(), querybyid()

8 DVD and VHS classes Implementation for calccost(), querybyid(), add()
Superclass specific member variables and methods add() and querybyid() methods connect to the database and retrieve the necessary information

9 MediaManager class The main menu
Depending on the item chosen, a specific method is called That method, in turn calls a method in DVD or VHS The QueryMedia() method connects to the database and retrieves all the information about all media.

10 Student application Architecture? What would be a good base class?
What would the sub or inherited classes be? What would be a manager class? Where should the database connection be done?

11 Java Mentors Pubali Banerjee ext Cynthia Lang ext Office Hours: Please See COS


Download ppt "KFT1 Task 4 GETTING STARTED"

Similar presentations


Ads by Google