codes using oops concepts primarily java and C++