mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 10:59:03 +00:00
docs: update single table inheritance
This commit is contained in:
@@ -81,7 +81,7 @@ public class SingleTableInheritance implements CommandLineRunner {
|
||||
* @param args program runtime arguments
|
||||
*/
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
public void run(String... args) {
|
||||
|
||||
Logger log = LoggerFactory.getLogger(SingleTableInheritance.class);
|
||||
|
||||
|
||||
@@ -45,10 +45,4 @@ public abstract class PassengerVehicle extends Vehicle {
|
||||
super(manufacturer, model);
|
||||
this.noOfPassengers = noOfPassengers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user