Since their inception, computers have played an increasingly important role in today's society. Advancements in technology have enabled computers to become faster and cheaper. Today, the majority of families own a home computer that is vastly more powerful than giant mainframes of years gone by. Computer hardware has been evolving rapidly with no end in sight, and with all of the advancements in computer hardware come advancements in computer software; gone are the days when FORTRAN and COBOL were the languages of choice. Today,vvv two hot new object oriented programming languages have entered the computer programming arena, Java and C++, this paper will examine the similarities and differences between these new languages. Both Java and C++ are object oriented programming languages, but what does that mean? Object oriented programming (OOP) emphasizes data, instead of algorithms for solving problems. Instead of trying to fit a problem to the procedural approach of a language, OOP attempts to fit the language to the problem, in other words, OOP is structured to produce an answer without changing the question. Object oriented programming involves two separate parts, class and objects. Class is a specification that describes a new data form, it is a template that defines how an object will look and behave.(Kaj 1996, 8) An object is that particular data structure constructed using the parameters defined by class.(Prata 1995, 5) The object oriented programming approach to program design is to first design classes that accurately represent those things with which the program deals. A drawing program, for example, might define classes to represent rectangles, lines, circles, brushes, pens, and the like. The class definitions, recall, include a descriptions of permissible options for each class, such as moving a circle or rotating a line.(Prata 1995, 5) The main advantages of OOP, besides being able to create more complex software, and develop answers without...
Bibliography: 1. Prata, Stephen. C++ Primer Plus, second edition. Corte Madera, CA: The Waite Group, 1995.
2. Nygren, Kaj. "Java Course Notes." Reading material for the 1996 MMS course, 1996 http://media.it.kth.se/mms/java/CourseDoc.html
3. "How C, C++, and Java Differ." 1996 http://www.ftc.nrcs.usda.gov/devtools/java/java/noMoreC/index.html
5. Baer, David M. "Love it, C/C++, hate it: I love it 's portability." Computerworld 23 October, 1995: 116-119.
6. Smalley Bowen, Ted. "Java 's for real." Infoworld 4 November, 1996: 1-3.
Please join StudyMode to read the full document