mysql - Oversimplified design for empty parent class? (c++) -


i have dal class handle access mysql database. functions has same name such string insert( datatype data), string update(int pk, datatype data) , on.

but datatype varies in type, seems meaningless have parent class insert , update , inherit because datatype different different table use. recommend have them group using inheritance data access layer.

advise? alternatives? using template? or should use interface instead of inheritance?


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -