Feedback Form

Get immediate access to thousands of

 high quality papers and essays.
Mega Essays Home  |   Questions?  |   Acceptable Use  |   Customer Care  |   Site Search
    Enter Essay Topic:

   

    Subjects:
Acceptance Essays
Arts
Custom Papers
English
Foreign
History
Miscellaneous
Movies
Music
Novels
People
Politics
Religion
Science
Sports
Technology

    Login:
Member Login
Join Now!
Click here to Join Now!
by: Credit Card
Click here to Join Now!
by: Online Check
Click here to Join Now!
by: Phone 1-900

ObjectOriented Programming vs Procedural Programming

It was way back in the 1970's when Kernighan and Ritchie were working on creating a new programming language they would soon call C. It was called this because a language called B preceded it. C was created with simplicity and flexibility in mind. Its primary use was for writing operating systems, however it became popular for a wide variety of other programs. The one thing that C lacked was support for objects; it was a procedural-oriented program. In a procedural-based programming language, a programmer writes out instructions that are followed by a computer from start to finish. This kind of programming had its advantages, but an object-oriented language makes programming clearer and easier to understand. Object-oriented software is all about using objects. An object actually contains code (member functions) and data (data members). Traditionally, code and data have been kept apart. For example, in the C language, units of code are called functions, while units of data are called structures. Functions and structures are not formally connected in C. A C function can operate on more than one type of structure, and more than one function can operate on the same structure. In object-oriented programming, code and


If the relationship between class 1 and class 2 can be said, as "class 1 is a class 2," then class 2 can derive from class one. Specifically, they have the ability to react differently depending on the situation. A primary rule of object-oriented programming is this: as the user of an object, you should never need to peek inside the box. This is also referred to as method overloading. Polymorphism refers to the ability of an object to have numerous methods with the same name. An object can have multiple methods with the same name but different parameter lists. Thus object-oriented programming offers a new and powerful model for writing computer software due to objects, which send and receive messages. Objects also have the special ability to inherit functionality from other objects. Perhaps the most serious limitation of procedural programming is the tendency for large procedural-based programs to turn into "spaghetti-code". Well using polymorphism, an object can be made to handle any scenario with the exact same method name. A well-written procedural-oriented program can actually be easy to understand. The benefits of objects do not stop with encapsulation. The way objects work are that a message is sent in and the object knows how to handle it. " In object-oriented programming, you build small, self-contained bits of code, which correspond more closely to how you think about your program. Thus, depending on what the object is asked to print, it will be able to print it.

Common topics in this essay:
Kernighan Ritchie, class 2, object-oriented programming, class 1, 2 class, class 2 class, class 1 class, , 1 class 2, 2 class 1, procedural-oriented program, object handle, methods name, relationship relationship, code data, programming language,

See the rest of the paper. Join Now!

Approximate Word count = 853
Approximate Pages = 3 (250 words per page double spaced)

Already a member? Click here

Click here to Join Now!
by: Credit Card
Click here to Join Now!
by: Online Check
Click here to Join Now!
by: Phone 1-900



CREDIT CARD
ONLINE CHECK
JOIN BY PHONE



Get immediate access to over 100,000
high quality term papers and essays!!!

Webmasters make $$$!



All papers are for research and references purposes only!
Copyright (c) 2001-2009 Mega Essays LLC
All rights reserved. DMCA HMS