Interface inheritance

Mandeep Singh Brar mandeep at brars.co.in
Sun Dec 12 09:44:37 PST 2010


But that idea would not work in APIs like JDBC for example (something
i was trying to immitate partly). PreparedStatement has method
setInt(int, int) while CallableStatement has method
setInt(string,int).

It is not possible to compile CallableStatement.setInt(int,int)
without casting or putting in aliases to a number of methods of
PreparedStatement in CallableStatement.


More information about the Digitalmars-d-learn mailing list