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

  • Satisfactory Essays

    Step 1: Examine the following algorithm as a base for how the program should flow. (Reference: Designing a Program, page 31).…

    • 777 Words
    • 4 Pages
    Satisfactory Essays
  • 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
  • Powerful Essays

    EAS230Syllabus

    • 1748 Words
    • 8 Pages

    An introduction to computer programming with an emphasis on problem solving will be presented. Specific topics include:…

    • 1748 Words
    • 8 Pages
    Powerful 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
  • Powerful Essays

    The following information will introduce general knowledge in basic programming concepts. It shall discuss basic types of computer programming languages as-well-as program development. There are three basic types of computer programming languages that will be discussed in a simple and easy to understand manner. We shall also describe the program development cycle and discuss why it is important to use a structured and organized process to create a computer programming language.…

    • 1318 Words
    • 6 Pages
    Powerful 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

    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
  • 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