Hexaware Technologies interview question

Explain about oops concepts and write codes as examples.