sentence: the following presents examples for two of the most widely used object-oriented languages , c++ and java , which should cover nearly every way that an object-oriented language can attack this problem .