Premium Essay

Introduction to Object-Oriented Programming

In: Computers and Technology

Submitted By abhishekch8808
Words 2729
Pages 11
Introduction to OOPs
-------------------------------------------------
1.1 STRUCTURED INTRODUCTION
Structured programming (known as modular programming) is a subset of procedural programming that enforces a logical structure in the programming being written, to make it more efficient and easier to understand and modify. Structured programming frequently employs a top-down design model, in which developers map out the overall program structure into separate subsections. A defined function or a set of similar functions coded in separate modules can be reused in other programs. After a module has been tested individually, it is then integrated with other modules into the overall program structure. Program flow follows a simple hierarchical model that employs looping constructs such as 'for,' 'repeat' and 'while.' Use of the 'Go To' statement is discouraged in structured programming.
Structured programming was first suggested by the mathematicians Corrado Bohm and Guiseppe Jacopini. They demonstrated that any computer program can be written with just three structures: decision, sequences and loops.
In structured programming coders break larger pieces of code into shorter subroutines (functions, procedures, methods, blocks or otherwise) that are small enough to be understood easily. In general, programs should use local variables and take arguments by either value or reference. These techniques help to make isolated small pieces of code easier to understand the whole program at once. PASCAL, Ada and C are some of the examples of structured programming languages.
1.1.1 Sequence Structure
A sequence structure consists of a single entry and single exit statement, i.e., it makes a sequential flow (Figure 1.1).
1.1.2 Loop or Iteration Structure
The loop consists of a sequence of statements, which are executed based on the logical condition. (Figure 1.2)
1.1.3 Decision...

Similar Documents

Free Essay

A Paper

... |Information Systems & Technology | | |PRG/211 Version 4 | | |Algorithms and Logic for Computer Programming | Copyright © 2012, 2011, 2010 by University of Phoenix. All rights reserved. Course Description This course provides students with a basic understanding of programming development practices. Concepts covered include the application of algorithms and logic to the design and development of procedural and object oriented computer programs to address the problem solving requirements associated with business information systems. This course will cover procedural programming concepts including data types, controls structures, functional decomposition, arrays, and files, classes and objects. Policies Faculty and students/learners will be held responsible for understanding and adhering to all policies contained within the following two documents: • University policies: You must be logged into the student website to view this document. • Instructor policies: This document is posted in the Course Materials forum. University policies are subject to change. Be sure to read the policies at the......

Words: 1735 - Pages: 7

Premium Essay

Object Oriented Programming

...Object Oriented Programming IT/218 Object-Oriented Programming (OOP) provides computer programmers not only a new way to program, but a new way to think in terms of objects. This type of programming (“Object oriented programming,” 2012) allows programmers to use objects as a way of thought versus using a procedural language and organizing by data structures and algorithms. This is a new way of programming centered on objects to develop programs. C++ gives the programmer a way to incorporate encapsulation, inheritance, and polymorphorism and C++ also provides many ways of support Object-Oriented Programming. Programming was once thought upon as using a series of tasks for the computer to perform but object-oriented programming uses a collection of objects. In this type of programming, each object can receive message and process data, as well as send other messages to fellow objects. By placing information where it is not accessible by the entire computer program, OOP (“Object oriented programming,” 2012) calls the data using methods. The methods then act as intermediaries for working on the data they control. Object-oriented programs center on different types of objects. Each object contains a kind of data that manages the information within the program itself. The method of the object will use a system of checks and safeguards that are defined in the types of data the object contains. Because of this system, adaptations to the program can......

Words: 465 - Pages: 2

Premium Essay

Programming Methods

...Running head: PROGRAMMING METHODS 1 College Databases Kenny Johnson Prof. Mark Cook CIS111: Introduction to Relational Database Management Systems April 20, 2014   Databases are used to store data and retrieve them quickly for processing. All businesses use a database to help them keep their information organized and available when needed. The data in the database is organized in a database management system. A database management system is a collection of programs that manages the database structure and controls access to the data stored in the database (Coronel, Morris & Rob). A business organization that uses a database is a college or university. Currently, at the time the student is admitted to the college all of the information is done manually by ink and paper. This is very time consuming and requires a lot of effort and time. Therefore, it is required to design a database system to make the work more efficient and speed up the process. The database management system will be fast and convenient, easy to operate and easy to edit and delete student information. The purpose of the database will store the records of students, teachers and courses. The database will keep track of students and the courses that they have taken. The database will also keep track of the instructors teaching each of the courses, Some of the entities that will be used in the college database management system are Student, Teacher, Course and Fees....

Words: 951 - Pages: 4

Free Essay

Management Lessons from Mayo Clinic

...PRINCIPLES OF PROGRAMMING LANGAUAGES Sub Code: IA Marks: Hrs/Week: 04 Exam Hours: 03 Total Hrs: 42 Exam Marks: 100 UNIT I 1. Introduction 4 Hrs Toward higher level languages, Programming paradigms, Language implementation: Bridging the gap, Expression notations, Abstract syntax trees. 2. Types : Data Representation 6 Hrs Elementary data types – Data objects, Variables and Constants, Data types, Declarations, Type checking and type conversion. Numeric data types, Enumerations, Booleans, characters. Structural data types- Structured data objects and data types, Specification of data structure types, Implementation of data structure types, Vectors and arrays, Records, Type equivalence. UNIT II 3. Imperative Programming 6 Hrs Basic statements, Structured sequence control, Handling special cases in loops, Programming with invariants, Proof rules for partial correctness. Procedure activations – simple call-return subprograms, Parameter passing methods, Scope rules for names...

Words: 403 - Pages: 2

Free Essay

Snapshot

...Simulated Assembler-Objects and a Glass Bottom Computer (a polytechnic approach) William G. Verbrugge wgverbrugge@csupomona.edu California State Polytechnic University, Pomona 3801 West Temple Avenue Pomona, CA 91768 Abstract Integrated Development Environments are excellent production tools for intermediate and advanced programming students and even beginners after they have learned the core concepts (stored data, stored programs, computer instructions, and the anatomy of the computer). Most authors of introduction to programming books recognize this by their inclusion of one to twenty pages on this topic. This paper presents how using a simulated assembler (a tool for learning) with a simple assembly language can introduce the beginning student to the core concepts without having to be concerned with all the exceptions and rigor of a full assembler language. The Simulated Assembler with a full viewable Computer Machine (Glass Bottom Computer) and the easy procedures for using it in a first programming course are illustrated. Using the assembler tool described here should provide an increase in learning via a polytechnic (learn by doing) approach. A comparative analysis of using the assembler in an introduction to object programming course is provided. Keywords: assembler, simple machine, software tools, language, programming, object oriented, machine language 1. INTRODUCTION The growth in hardware technology has allowed the theories of......

Words: 3467 - Pages: 14

Premium Essay

Bout This

...Pasig campus pangilinan DSITI-AI Oct 27 15 Java Programming java programming Introduction in java programming Objectives * Object-Oriented Programming Language * Object-Oriented Programming Principle * Benefits Of Object-Oriented Programming * Introduction To Java Programming * Resources Used To Create a Java Programming *Structures Of a Java Programming * Result Of Executing The Java Programing Object Oriented Programming Language (OOPL) OOPL Is An Extension Of Procedural Language. Involves Creating Program Components as Object Related To The Real Word. Writing Object-Oriented Programs Involves Creating Object And Application That Uses Those Objects. An Object Contains Both Data Procedures Can be packaged Into a Single Unit. Based On Three Concepts Encapsulation Ability To Bind Data And Procedures Into an Object. Inheritance Ability Of Objects To Acquire The Attributes Or Behavior Of Other Objects Or Classes. Polymorphism Ability of An Object To Take Many Forms Or Identities. Benefits Of Object-Oriented Programming *Reusability -Able To Reuse The Defined Objects. *Adaptability –Able to fit in different environment. *maintainability –Able to change easily. *reliability –Able to......

Words: 1445 - Pages: 6

Free Essay

C++ Objects Solutions

...Problem, p. 25 Using cout to Display Output, p. 32 Assignment Statements, p. 59 Arithmetic Operators, p. 61 Solving the Restaurant Bill Problem, p. 72 Using cin to Read Input, p. 75 Evaluating Mathematical Expressions, p. 81 Combined Assignment Operators, p. 102 Solving the Stadium Seating Problem, p. 151 Using an if Statement, p. 162 Using an if/else Statement, p. 172 Using an if/else if Statement, p. 175 Solving the Time Calculator Problem, p. 236 The while Loop, p. 249 The for Loop, p. 263 Nested Loops, p. 277 Solving the Ocean Levels Problem, p. 299 Defining and Calling Functions, p. 306 Using Function Arguments, p. 316 Value-Returning Functions, p. 326 Solving the Markup Problem, p. 380 Creating a Class, p. 391 Creating and Using Class Objects, p. 393 Creating and Using Structures, p. 436 Solving the Car Class Problem, p. 480 Accessing Array Elements, p. 487 Passing an Array to a Function, p. 517 Two-Dimensional Arrays, p. 526 Solving the Chips and Salsa Problem, p. 567 Performing a Binary Search, p. 580 Sorting a Set of Data, p. 587 Solving the Lottery Winners Problem, p. 616 (continued on next page) Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 LOCATION OF VIDEONOTES IN THE TEXT Chapter 10 Pointer Variables, p. 621 Dynamically Allocating an Array, p. 645 Solving the Days in Current Month Problem, p. 676 (continued) Chapter 11 Operator Overloading, p. 704 Aggregation and Composition, p. 734......

Words: 11246 - Pages: 45

Premium Essay

Object Oriente

...d1.1 Object-oriented programming (OOP) is a programming language model organized around "objects" rather than "actions" and data rather than logic. Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data. Object-oriented programming is a programming paradigm that uses abstraction (in the form of classes and objects) to create models based on the real world environment.   An object-oriented application uses a collection of objects, which communicate by passing messages to request services. Objects are capable of passing messages, receiving messages, and processing data. The aim of object-oriented programming is to try to increase the flexibility and maintainability of programs. Because programs created using an OO language are modular, they can be easier to develop, and are simpler to understand after development. The characteristics of object oriented programming are as follows: 1. Class A class is a blueprint, or prototype, that defines the variables (data) and the methods (operations) common to all objects of a certain kind. 2. Object Objects are the basic run time entities in an object oriented system. They may represent a person, a, place, a bank account, a table of data or any item that the program has to handle. Objects take up space in memory and have an associated address like record in Pascal, or a structure in C. 3. Encapsulation The act of placing data and the operations that......

Words: 2483 - Pages: 10

Premium Essay

Management

...Object-Oriented Analysis and Design Method MAO BO 2015 SPRING Course Category and Objects • Category • Core course for undergraduate students in major of Information Management and Information Systems • Objects • Understanding the elementary programming with Java(?) • Understanding methodologies and technologies of object-oriented analysis and design • Be more prepared for future software-related jobs MAO Bo, School of Economics and Management, Tsinghua University Spring, 2015 2 You will learn about • How to programming with Java  • How to gather software requirements • How to analysis software using object-oriented theory • How to design software using object-oriented theory • How to communicate the software analysis and design using UML (unified modeling language) diagrams • How to divide a software project into phases with objectoriented thinking MAO Bo, School of Economics and Management, Tsinghua University Spring, 2015 3 Contents of Course in Java 1. 2. 3. 4. 5. 6. Elementary Programming with Java Selections and Loops Method and Arrays in Java Objects and Classes Inheritance and Polymorphism Event-Driven Programming and Exception Handling MAO Bo, School of Economics and Management, Tsinghua University Spring, 2015 4 Contents of Course in OOA&D 7. What is great software and how can get it? 8. How to gather software requirement? 9. How to deal with software requirements change? 10. Object-oriented software analysis approaches 11. Object-oriented software...

Words: 385 - Pages: 2

Premium Essay

Proposal

...workplace to enrich the accuracy and speed of software development. My claim is that programmers now are so far into coding and no one else can understand it, with object-oriented languages, programming with pictures, it will be fun and anybody can do it. The research that I will conduct to support my claim will feature discussing past programming methods, systems that do not use methods and those that are using it to amplify work production. In addition to this new easy to software languages available today why not upgrade and safe time and money. Thru evaluating and exploring programs across the country and even the world, I can determine how and why object-oriented languages are necessary to today’s working environment. How the project topic is influenced by (and/or influences) history, culture, media, and/or the arts from a national or world perspective These are some of the major advantages of OOP. Simplicity: software objects model real world objects, so the complexity is reduced and the program structure is very clear. Modularity: each object forms a separate entity whose internal workings are decoupled from other parts of the system. Modifiability: it is easy to make minor changes in the data representation or the procedures in an OO program. Thus, this will influence the world perspective that programming is not so hard. Audience The intended audiences for my proposal are software development companies. I believe that I can encourage them to combine or......

Words: 742 - Pages: 3

Premium Essay

Objective-C Research Paper

...Research of Objective-C October 9, 2012 Introduction There is little doubt in today’s dynamic and fast moving technology market that Objective-C is a powerful, high-level, flexible programming language that has been around since the early 1980s and has the staying power to last a long time. Objective-C is an extension of the programming language C developed by Brad Cox and Tom Love to support the object oriented features of Smalltalk another programming language. Objective-C is the main language from which Apple’s MAC OS X for Desktops and laptops and iOS for iPhones and iPads are derived. There have been variants to this language as well, Objective-C++ and Objective-C 2.0 which proves the sustainability of this language. Due its portability, Objective-C has shown its flexibility and the ability to adapt to the ever changing and fast moving arena of mobile devices especially from Apple. What is Objective-C? Objective-C is a reflective programming language which aims to provide object orientated concepts and Smalltalk messaging to C. GNU Compiler Collection (GCC) provides a compiler for Objective-C, however due to the rich library support on OpenStep based operating systems (Mac OS X, IPhone, GNUstep) it is typically only used on these platforms. Objective-C is implemented as an augmentation to the C language. It is a superset of C which means that any Objective-C compiler can also compile C. To illustrate what Objective-C looks like as a language I will show......

Words: 2068 - Pages: 9

Free Essay

Bapi

...SAP R/3 Document : Introduction To BAPI’S Introduction to BAPIs Definition The SAP Business Objects held in the Business Object Repository (BOR) encapsulate their data and processes. External access to the data and processes is only possible by means of specific methods - BAPIs (Business Application Program Interfaces). A BAPI is defined as a method of a SAP Business Object. For example, the functionality that is implemented with the SAP Business Object type "Material" includes a check for the material's availability. Thus, the Business Object type "Material" offers a BAPI called "Material.CheckAvailability". Use To use a BAPI method, an application program only needs to know how to call the method; that is, it needs to know the method's interface definition. Therefore, when including a BAPI invocation in your application program, you only need to supply the appropriate interface information. A BAPI interface is defined by: Ø Import parameters, which contain data to be transferred from the calling program to the BAPI Ø Export parameters, which contain data to be transferred from the BAPI back to the calling program Ø Import/export (table) parameters for both importing and exporting data Structure The BAPIs in the R/3 System are currently implemented as function modules, all of which are held in the Function Builder. Each function module underlying a BAPI: Ø Supports the Remote Function Call (RFC) protocol Ø Has been assigned as a method to an SAP...

Words: 1918 - Pages: 8

Free Essay

Distributed Systems

...Server development. Introduction An overview of DBMS technology * How data is accessed, organized and stored * The database development process * Query and application development tools * CASE tools for database analysis and design * Tables, attributes and relationships * Primary and foreign keys * Relational integrity constraints * Manipulating data: selection, projection, join, union, intersection, difference * An integrated, active data dictionary * The query optimizer * Developing the logical data model * Mapping the data model to the relational model * Specifying integrity constraints * Defining the data in the data dictionary * Capturing entities, attributes and identifiers * Describing relationships: one-to-one, one-to-many, many-to-many * Optional and mandatory relationships * Resolving many-to-many relationships for implementation * Generating the SQL to build the database * Reverse engineering to capture the design of an existing database * SQL Programming Language Introduction 1 Days * Write SQL code based on ANSI/ISO standards to build Microsoft SQL Server or Oracle database structures * Update database content with SQL and transaction handling * Retrieve data with filter conditions and from multiple tables using various types of join * Process data with row and aggregate functions * SQL Server Introductory Courses * SQL Server Introduction 1Days *......

Words: 1010 - Pages: 5

Free Essay

Nadda

....................................................................................................................................... 7 SDLC................................................................................................................................................................................................... 9 UML ................................................................................................................................................................................................. 11 1 Review Guide OOPS Resources:  http://en.wikipedia.org/wiki/Object-oriented_programming 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...

Words: 2407 - Pages: 10

Premium Essay

Oop Stack

...Group Assignment Introduction Object Oriented Programming is a type of programming in which programmers define not only the data type of a data structure, but also the types of operations (functions) 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. There are five characteristics of OOP such as below. Class & Object – Allow programmer to look at a system in a whole different way. Encapsulation – Encapsulation is capturing data and keeping it safely and securely from outside interfaces. Inheritance - This is the process by which a class can be derived from a base class with all features of base class and some of its own. This increases code reusability. Polymorphism - This is the ability to exist in various forms. For example an operator can be overloaded so as to add two integer numbers and two floats. Abstraction - The ability to represent data at a very......

Words: 853 - Pages: 4