Yahoo interview question

Please write a database abstraction layer using object oriented methods.