I'm currently developing a console application, where you can add a dataset, edit/delete a dataset and printing a pdf file, with dataset information. I programmed already on C, but not with the OOP thoughts. So I want to know if the following is OOP, since I'm planning to structure my program control this way.
I have 6 classes:
- ApplicationXXX (includes main(), openMenuControl())
- JDBConnector (includes the connection to the database)
- InputReader (reads the input fields)
- InputWriter (writes the input fields in the database)
- DataEditor (able to edit a dataset or delete)
- PDFCreator (creates the pdf).
public class ApplicationXXX {
public static void openMenuControl() {
System.out.println("Choose (1) for Add Dataset, Choose (2) for Edit Dataset, (3) create PDF-File")
// read input with scanner
switch (input) {
case 1: // println "You have choosen "Add Dataset"
InputReader read = new InputReader();
read.readInput();
InputWriter write = new InputWriter();
write.writeDataset();
break;
case 2: // println "You have choosen "Edit Dataset"
DataEditor edit = new DataEditor();
edit.getDataset();
edit.editDataset();
break;
case 3: // println "you have choosen "Create PDF-File"
PDFCreater pdfcreate = new PDFCreator();
pdfcreate.getDatset();
pdfcreate.writeDataset();
break;
}
}
public static void main() {
System.out.println("****** PROGRAM HEADER *****");
while(true) {
openMenuControl();
}
}
}
If would appreciate it, when some experience programmer can give me feedback.