discover get and set in oop