Siemens interview question

Chess Game implementation in Java, what are the classes and methods , member variables specific to chess game,method overloading , overriding,inheritance , joins in dbms etc. some questions on C++