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

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -