onsemi Interview Question

Why and when would you used object oriented ?