Preview

Objected Oriented Programming Paper

Good Essays
Open Document
Open Document
779 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Objected Oriented Programming Paper
Objected Oriented Programming Paper
IT/218
May 13, 2012
Farhad Malek-Asghar

When it comes to writing a program there are so many ways a person can approach the problem. Think of it this way, a chef following a recipe can look at the ingredients and decided to add more of one thing and less of another or the chef can follow the recipe exactly. As long as the chef uses common logic on blending foods the dish will come out correctly. The same is true when building a program. A programmer has many tools to choose from to make it more or less complicated. The programmer also has several tools to choose from to ensure the program runs. So let me go over some of these essential tools right now and how they relate to one another. The first tool a programmer has to work with is called Structures. According to Cprogramming.com (1997), "Structures are a way of storing many different values in variables of potentially different types under the same name. This makes it a more modular program, which is easier to modify because its design makes things more compact". So in retrospect they are inherently more useful when a lot of data needs to be grouped together like large databases. Next we have Classes. According to Cprogramming.com (1997), "Classes are collections of data related to a single object type. Classes not only include information regarding the real world object, but also functions to access the data, and classes possess the ability to inherit from other classes”. Try to think of Classes as a television. Public parts of the classes can relate to the parts of a television that people tend to use. An example of this would be the volume or channel changing buttons. Each function is essential in the overall operation of the television and so is true about Classes. Then you have Unions. According to Microsoft (2012), "A Union is a structure like type that is provided in C and C++ to enable efficient use of memory.



References: Cprogramming.com. (1997). Structures in C++. Retrieved from http://www.cprogramming.com Exforsys (2000). C++ Polymorphism. Retrieved from http://www.exforsys.com/tutorials/c-plus-plus/polymorphism-an-introduction.html Microsoft. (2012). Union (C++). Retrieved from http://msdn.microsoft.com/en-us/library/5dxy4b7b(v=vs.90).aspx Stroustrup, B. (1992). C++-The C++ Programming Language, Second Edition. Retrieved from http://www.objs.com/x3h7/cplus.htm

You May Also Find These Documents Helpful

  • Powerful Essays

    The purpose of this Lab. is to familiarize student how to solve practical problems programmatically; they will practice on elementary programming using primitive data types, variables, constants, operators, expressions, and input and output. Also, they will learn how to diagnose errors that may occur when a program is compiled or executed. There are some exercises, through which they will understand the concept learn in this chapter.…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Good Essays

    Pm3110 Unit 5 Lab Report

    • 343 Words
    • 2 Pages

    Classes are useful for length programs which require large amounts of similar code. Classes can accelerate program development by reducing redundant code, testing, and debugging. Using classes also makes the code easier to read and follow for other programmers.…

    • 343 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Homework Week 2

    • 743 Words
    • 3 Pages

    A compiler translates one computer language into another. It also pics up errors in the program being put together.…

    • 743 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Read Ch. 4, “Software Basics: The Ghost in the Machine”, in Tomorrow’s Technology and You.…

    • 2331 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    Array Structure Proposal

    • 574 Words
    • 3 Pages

    In this proposal we will focus on the objects and object-oriented programming that will help solve the problem of the Police Department report writing issue. An object doesn’t exist until a case of the class has been formed. When the object is formed, space for the object is allocated in memory. Multiple objects can be created from just one class. “Objects are created from abstract data types that encapsulate data and functions. An object is a software entity that contains both data and procedures” (Gaddis, 2010). “Object-oriented programming (OOP) is a programming paradigm using "objects" – usually instances of a class – consisting of data fields and methods together with their interactions – to design applications and computer programs. Programming techniques may include features such as data abstraction, encapsulation, messaging, modularity, polymorphism, and inheritance” (Wikipedia, 2012). “Objects are created from abstract data types that encapsulate data and functions together” (Gaddis, 2010). Gaddis went on further to say that “An object is a software entity that contains both data and procedures” (Gaddis, 2010).…

    • 574 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    CSO Gaddis Java Chapter1 1

    • 2953 Words
    • 29 Pages

    © 2012 Pearson Education, Inc. All rights reserved. Chapter 1: Introduction to Computers and Java Starting Out with Java: From Control Structures through Data Structures Second Edition by Tony Gaddis and Godfrey Muganda Chapter Topics Chapter 1 discusses the following main topics: – Introduction – Why Program? – Computer Systems: Hardware and Software – Programming Languages – What Is a Program Made Of? – The Programming Process –…

    • 2953 Words
    • 29 Pages
    Satisfactory Essays
  • Powerful Essays

    OOP Assigment 1 Sit 1

    • 4788 Words
    • 20 Pages

    Inheritance is when a class (subclass) has the same attributes and methods of another class (parent class); this is done by creating class from an existing class. While a subclass has properties derived for the parent class, it can also have properties of its own.…

    • 4788 Words
    • 20 Pages
    Powerful Essays
  • Good Essays

    It210 Syllabus

    • 2333 Words
    • 10 Pages

    Objectives 1.1 Describe the importance of using a structured, modular approach when creating program requirements, design, and code. 1.2 Identify how a computer processes and stores data. Read the course description and objectives. Read the instructor’s biography and post your own. Read Appendix A. Read Ch. 2 of Prelude to Programming. Read Ch. 3 of Prelude to Programming.…

    • 2333 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    Intro to Computers

    • 340 Words
    • 2 Pages

    Most computer software falls into one of three categories: compilers and other translator programs, software applications, and system software. Describe and give examples of each. [RQ, no. 2]…

    • 340 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Personal Career Goals

    • 783 Words
    • 4 Pages

    Computer technology has gone from being undiscovered to being used globally. We live in an exciting time technologically. Over relatively short spans of time, technology has improved our lives in many ways. Advances in computing and technology save lives, make day-to-day living easier, and have improved quality of life for billions of people. The impact that computing has on the world is fascinating to me. I have spent the last few years studying programming, software development, and computer programming and have felt great satisfaction in learning about what makes up this computing technology.…

    • 783 Words
    • 4 Pages
    Good Essays
  • Good Essays

    One of the techniques one has implemented is the input-processing-output technique; this technique has facilitated students to solve small programming problems assignments. This technique; identifies the steps involved in each process to be performed and the inputs to and outputs from each step. However, this technique lacks the proper procedures to identify the root or roots of the problem. Therefore, this technique leaves the student without the understanding of what the problem is and what is really causing it [3].…

    • 603 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Deitel, H.M., & Deitel, P.J. (2002). Java: How to program (6th ed.). Upper Saddle River, NJ: Pearson Education…

    • 356 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Object-oriented programming is the predominant paradigm in the software development world. Thus, it is important to understand how object-oriented programming works. One useful exercise may be to compare and contrast object-oriented programming to more traditional structured programming. I will do just that in this essay. We will review some history, give a brief overview of both paradigms, and discuss how they are similar and different.…

    • 826 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    ding dong

    • 839 Words
    • 4 Pages

    Your program should have meaningful variable names, comments, and indentation. The program should compile and run. The program should do what is specified in the PROBLEM section above.…

    • 839 Words
    • 4 Pages
    Powerful Essays
  • Good Essays

    Data Types

    • 1808 Words
    • 8 Pages

    Our interactions (inputs and outputs) of a program are treated in many languages as a stream of bytes. These bytes represent data that can be interpreted as representing values that we understand. Additionally, within a program we process this data that can be interpreted as representing values that we understand. Additionally, within a program we process this data in various way such as adding them up or sorting them. This data comes in different forms. Examples include: your name which is a string of characters; your age which is usually an integer; or the amount of money in your pocket which is usually a value measured in dollars and cents (something with a fractional part). A major part of understand how to design and code programs in centered in understanding the types of data we want to manipulate and how to manipulate that data.…

    • 1808 Words
    • 8 Pages
    Good Essays

Related Topics