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
Post a Comment