Object Oriented Programming Essay, Research Paper
Introduction
Object Orientation has become more and more important in the last years. Object oriented programming was designed for re-use of codes. It is a type of programming in which programmers define not only the data structure, but also the types of operations that can be applied to the data structure. In this way, the data structure becomes an object that includes both data and functions. In addition, programmers can create relationships between one object and another. For example, objects can inherit characteristics from other objects. One of the principal advantages of object-oriented programming techniques over procedural programming techniques is that they enable programmers to create modules that do not need to be changed when a new type of object is added. A programmer can simply create a new object that inherits many of its features from existing objects. This makes object-oriented programs easier to modify.
Object oriented language uses the following concepts
Classes, Objects, Instance variables and Methods.
Basically everything in object orientation is considered an object, except for the primitive data types: There are mainly three groups of primitive data types: numeric types, Boolean types and arrays. Objects contain attributes and methods.
The attributes of an object are just like Adjectives in the English language. The attributes describe the objects like adjectives describe the nouns. A class is determined by common attributes, all objects falling under this category of common attribute belong to that class.
Methods are like verbs, they describe the action or task performed by the object Since objects are the fundamental building blocks they can inherit attributes and methods from their parent class. Objects can also collaborate with each other.
Inter-phases
Objects can have: public interphase, private interphase.
Inheritance
If there is already a class which can respond to a bunch of different messages, and if you wanted to make a new, similar class which adds just a couple of more messages you do not have to re-write the entire class. All you need to do is create a subclass of the original class. This new class inherits all the existing messages, and therefore, all the behavior of the original class. The original class is called the parent class, or superclass, of the new class. Some more jargon– a subclass is said to be a specialization of its superclass, and the conversely a superclass a generalization of its subclasses. Inheritance also promotes reuse. You don’t have to start from scratch when you write a new program. You can simply reuse an existing repertoire of classes that have behaviors similar to what you need in the new program. Much of the art of object-oriented programming is determining the best way to divide a program into an economical set of classes. In addition to speeding development time, proper class construction and reuse results in far fewer lines of code, which translates to less bugs and lower maintenance costs.
Object-Oriented Languages
There are almost two dozen major object-oriented programming languages in use today. But the leading commercial object-oriented languages are far fewer in number. These are:
C++, Smalltalk, Java
C++
C++ is an object-oriented version of C. It is compatible with C, so that existing C code can be incorporated into C++ programs. C++ programs are fast and efficient, qualities which helped make C an extremely popular programming language. It sacrifices some flexibility in order to remain efficient, however. C++ uses compile-time binding, which means that the programmer must specify the specific class of an object, or at the very least, the most general class that an object can belong to. This makes for high run-time efficiency and small code size, but it trades off some of the power to reuse classes. C++ has become so popular that most new C compilers are actually C/C++ compilers. However, to take full advantage of object-oriented programming, one must program in C++, not C. This can often be a major problem for experienced C programmers. Many programmers think they are coding in C++, but instead are only using a small part of the
language’s object-oriented power.
Smalltalk
Smalltalk is a pure object-oriented language. While C++ makes some practical compromises to ensure fast execution and small code size, Smalltalk makes none. It uses run-time binding, which means that nothing about the type of an object need to be known before a Smalltalk program is run. Smalltalk programs are considered by most to be significantly faster to develop than C++ programs. A rich class library that can be easily reused via inheritance is one reason for this. Another reason is Smalltalk’s dynamic development environment. It is not explicitly compiled, like C++. This makes the development process more fluid, so that “what if” scenarios can be easily tried out, and classes definitions easily refined. But being purely object-oriented, programmers cannot simply put their toes in the object-oriented waters, as with C++. For this reason, Smalltalk generally takes longer to master than C++. But most of this time is actually spent learning object-oriented methodology and techniques, rather than details of a particular programming language. In fact, Smalltalk is syntactically very simple, much more so than either C or C++. Unlike C++, which has become standardized, The Smalltalk language differs somewhat from one implementation to another. The most popular commercial “dialects” of Smalltalk are:
VisualWorks from ParcPlace-Digitalk, Inc.
Smalltalk/V & Visual Smalltalk from ParcPlace-Digitalk Inc.
VisualAge from IBM
VisualWorks
VisualWorks is arguably the most powerful of Smalltalks. VisualWorks was developed by ParcPlace, which grew out of the original Xerox PARC project that invented the Smalltalk language. VisualWorks is platform-independent, so that an application written under one operating system, say, Microsoft Windows, can work without any modification on any of a wide range of platform supported by ParcPlace, from Sun Solaris to Macintosh. VisualWorks also features a GUI (Graphic User Interface) builder that is well-integrated into the product.
Smalltalk/V and Visual Smalltalk
Digitalk’s versions of Smalltalk are somewhat smaller and simpler, and are specifically tailored to IBM compatible PCs. A Macintosh version was available, but support has since been abandoned. This does not bode well for Digitalk cross-platform
efforts. Digitalk has a separate GUI builder, called PARTS Workbench (bundled with Visual Smalltalk), which allows quick construct of an application. ParcPlace and Digitalk were merged into a single company, ParcPlace-Digitalk, Inc. The future of the Digitalk product line is uncertain, and it may just be spun off back into a separate company.
VisualAge
IBM’s version of Smalltalk, VisualAge, is comparable to Smalltalk/V with PARTS. Both of these Smalltalks allow programmers to readily exploit machine-specific features, at the expense of some portability. IBM has adapted existing industry standards for such things as file management and screen graphics. When IBM talks, people listen, and IBM has made a substantial commitment to Smalltalk.
Java
Java is the latest, flashiest object-oriented language. It has taken the software world by storm due to its close ties with the Internet and Web browsers. It is designed as a portable language that can run on any web-enabled computer via that computer’s Web browser. As such, it offers great promise as the standard Internet and Intranet programming language. Java is a curious mixture of C++ and Smalltalk. It has the syntax of C++, making it is easy to learn, depending on your experience. But it has improved on C++ in some important areas. For one thing, it has no pointers, low-level programming constructs that make for error-prone programs. Like Smalltalk, it has garbage collection, a feature that frees the programmer from explicitly allocating and de-allocating memory. And it runs on a Smalltalk-style virtual machine, software built into your web browser which executes the same standard compiled Java byte codes no matter what type of computer you have. Java development tools are being rapidly deployed, and are available from such major software companies as IBM, Microsoft, and Symantec.
Conclusion
Object-oriented programming offers a new and powerful model for writing computer software. Objects are “black boxes” which send and receive messages. This approach speeds the development of new programs, and, if properly used, improves the maintenance, reusability, and modifiability of software. Object-oriented programming requires a major shift in thinking by programmers, however. The C++ language offers an easier transition via C, but it still requires an o-o design approach in order to make proper use of this technology. Smalltalk offers a pure o-o environment, with more rapid development time and greater flexibility and power. Java promises much for Web-enabling object-oriented
programs.
Другие работы по теме:
Job Letter Essay Research Paper To Whom
Job Letter Essay, Research Paper To Whom It May Concern: I am enclosing a copy of my resume for your files and review. I am an individual who responds to challenges and works both independently or as a part of a team,
Nds Security Essay Research Paper NDS Object
Nds Security Essay, Research Paper NDS Object and Property Rights NDS security is similar in many ways the file system security. The file system security is controlled through access rights given through trustee assignments to directories and through directory and file attributes. NDS security uses an Access Control List (ACL) to give trustee assignments to objects on the NDS tree.
God Essay Research Paper To say that
God Essay, Research Paper To say that God does exist, is to say that we can prove God exists by describing some proof we have of this statement, or at least a being with what we think some of the attributes of a God would be. Since we cannot prove beyond reasonable doubt that God exists we have to infer certain things about how we came to be.
Mass Volume And Density Lab Essay Research
Paper Mass, Volume, and Density LabThe purpose of this lab was is to find the mass and volume of an object. Then to find the density of the object using the measurements of the mass and volume.
Vectors And Projectiles Essay Research Paper After
Vectors And Projectiles Essay, Research Paper After successfully completing the first two videos of the Paul Hewitt series, I have been drawn to this course. The third video of the series reviews the concepts of vectors and projectiles. In this video Paul goes over a lot of previously stated formulas. The ideas of how fast or hoe far an object travels are restated.
Motivation Speech Essay Research Paper IV BROADCAST
Motivation Speech Essay, Research Paper IV. BROADCAST PROGRAMMING: BASIC LAW AND POLICY The First Amendment and federal law generally prohibit the FCC from censoring material in broadcasting. Stations choose the material they determine as best for their community. The FCC does not advise on artistic standards, formats, grammar or the quality of their programming.
Moon Essay Essay Research Paper MoonAn object
Moon Essay Essay, Research Paper Moon An object can represent many different things to many different people. One object of interest is the moon. Philip Larkin, the speaker of Sad Steps, and Sir Philip Sidney, speaker of sonnet 31 from Astrophel and Stella, have different feelings and attitudes towards the moon.
Rock N Roll Essay Research Paper From
Rock N Roll Essay, Research Paper From jazz and boogie of the thirties moved popular music away from the light entertainment of the theater toward a more exiting and dance oriented style that made the swing era a golden age. Do to jazz moving into rhythm and blues black people were recognized for talents in music and dance.
Object Oriented Programming Essay Research Paper THE
Object Oriented Programming Essay, Research Paper THE ADVANTAGES OF OBJECT-ORIENTED PROGRAMMING USING C++ Object-oriented programming is a new way of approaching the job of programming. Programming over the years has evolved to accommodate the increased complexity of programs. (1) Structured, easy to understand programming has been around since the late 60’s.
Programming Languaguages Essay Research Paper Programming LanguagesA
Programming Languaguages Essay, Research Paper Programming Languages A programming language is a set of English-like instructions that includes a set of rules for putting the instructions together to create commands. A translator changes the English-like commands into numeric code that the computer can understand.
Assembly Language Essay Research Paper When programming
Assembly Language Essay, Research Paper When programming in assembly language, we have to specify operations in a much greater level of detail than we would have to do in a high level language. Furthermore, we get relatively little help from the assembler in finding errors. Assemblers can only check the syntax of each line, and check that every symbol or label used is defined somewhere.
Velocity Essay Research Paper Instantaneous Versus Average
Velocity Essay, Research Paper Instantaneous Versus Average Velocity A position versus time graph or a displacement versus time graph can be used to analyze the motion of an object in one dimension. The slope gives the object’s velocity. The slope of a line segment joining two points on the graph gives the average velociy during that interval.
Henry Foyal Essay Research Paper Henry Fayol
Henry Foyal Essay, Research Paper Henry Fayol’s Principal of management Fayol was a key figure in the turn-of-the-century Classical School of management theory. He saw a manager’s job as:
Untitled Essay Research Paper A hacker is
Untitled Essay, Research Paper A hacker is a person obsessed with computers. At the heart of the obsession is a drive master the computer. The classic hacker was simply a
Aquinas
’ First Proof Of The Existence Of God Essay, Research Paper I have chosen to write St. Thomas Aquinas proof citing motion as proof of the existence of God. Although I must admit to being a little confused the wording, I see it as being in terms of ability too, act of, and the first to act.
Letter Of Recommendation Essay Research Paper Letter
Letter Of Recommendation Essay, Research Paper Letter of Recommendation for Raj Rishi Chatterjee I should like to write a few words in support of Mr. Raj Rishi Chatterjee’s application for graduate admission in your department. He is interested in pursuing his graduate work in the broad area of Computer Science.
Censorship On Freedom Of Speech Essay Research
Paper In my research, I found out that censorship goes against our freedom of speech. According to the American Civil Liberties Union, censorship would shut out parents from deciding what television programming is acceptable for their children, and giving that right to bureaucrats and to executives.
Wireless Application Protocol Essay Research Paper Wireless
Wireless Application Protocol Essay, Research Paper Wireless Application Protocol (WAP) Background Market study has shown that the number of mobile users is exceeding the number of PC users. Some of the industry leaders have created a forum to evolve an industry standard for providing internet access to users over wireless access.
Programming A Vcr Essay Research Paper PROGRAMMING
Programming A Vcr Essay, Research Paper PROGRAMMING A VCR Thomas Hunter 1103B 04/24/00 Programming a VCR Programming the timer on a VCR (Video Cassette Recorder) can be very easy. First you need to be able to read the remote control. Next you need to know what time and what channel the program is going to be on.
Government Vs Parents Essay Research Paper
Government vs. Parents The regulation of children?s television programming has been a hot topic over the last couple of years. There was a segment on the television show, ?20/20?, September 27, 1996 entitled ?Addicted to the Tube? with John Stossel as the reporter. Mr. Stossel relayed a statistic
Programming Under The Wizard
’s Spell Essay, Research Paper The computer is a tool that has become indispensable to the modern family and company. In flourishing so successfully the computer has passed from incredibly complex and unusable to anyone
Politics Essay Research Paper Is computer programming
Politics Essay, Research Paper Is computer programming a career I would like to persue? Chapter 1 What is computer programming? A program is basically a set of directions to a given destination. Say your friend asks you, “where do u Live”. You reply, “Down the street until the first right, go right there and it is the second house on the left.” You have just given a program and you are the programmer for giving those directions.
Louie Freeh (Director Of Fbi) And Correlation
To C Essay, Research Paper Louie Freeh Louie Freeh grew up a normal boy in a normal family. He had the respect of his parents and those in the community. His actions and attitude fit his job as director of the FBI. His leadership tactics can be compared to that of community oriented policing. Community oriented policing involves satisfying the needs and requests of citizens as well as the department.
Java Verses C Essay Research Paper Java
Java Verses C++ Essay, Research Paper Java vs. C++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.
Country Music Essay Research Paper Country MusicToday
Country Music Essay, Research Paper Country Music Today, many people in the United States listen to country music. People have almost always listen to this type of music, from early rebels, to the families of today. The topic of true country music usually remains the same in all songs. The country atmosphere is more family oriented and provides children and all people with good role models.
Poem Objects Essay Research Paper Max E
Poem: Objects Essay, Research Paper Max E. Gaytan 4-5-00 One object can unlock All secrets of the world. It can create happiness And endless piece in the World. It can cure diseases
Is Cobol Dead Essay Research Paper Is
Is Cobol Dead Essay, Research Paper Is COBOL dead? To be completely honest, I originally had no idea. I knew that I took it as programming class last semester, but I didn’t know how it applied to the business world. Nor, had it ever crossed my mind in the 3+ months that I used it. The fact that you asked the question made me wonder myself, so I had to do some reading.
Do Geeks Need To Go To College
Essay, Research Paper ?Do Geeks need to go to College?? In the essay ?Do Geeks need to go to college? by Lisa Schmeiser is about the question if people lose the skill of wanting to learn if they skip college. I feel that a lot of high-tech jobs easily relate to a good majority of the general majors provided by universities.
JavaScript Essay Research Paper Within this report
JavaScript Essay, Research Paper Within this report is information on how JavaScript is used on the Internet. This report will contain information that will help you learn about JavaScript and its uses on the Internet. It mentions what JavaScript is, where it originated and what some of its uses are.JavaScript is a loosely typed scripting language that resembles the programming language C.
Cold Fusion Essay Research Paper Allaire
Cold Fusion Essay, Research Paper Allaire’s ColdFusion studio and server package allows web developers to create database driven applications. ColdFusion is server side scripting that utilizes Microsoft ODBC drivers to access system databases. This allows ColdFusion to produce dynamic pages generated real time by the server.
Object Orientated Computing Essay Research Paper The
Object Orientated Computing Essay, Research Paper The object orientated approach has changed the way in which computing and programming has been done in the past. These changes affect almost everyone and with computing technology becoming more and more integrated with business and every day life it is useful to look at the importance of these changed to the technology industry.