0% found this document useful (0 votes)
58 views

Unstructured Programming:: Books

The document discusses different programming paradigms and their characteristics, focusing on object-oriented programming. It defines what an object, class, and object-oriented programming are. Specifically, it states that an object contains data members and methods, a class defines the data type of an object, and in object-oriented programming each object knows its own class. The document contrasts this with procedural programming, where the main program coordinates procedure calls, and unstructured programming, where the main program directly operates on global data.

Uploaded by

Raghav Gupta
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Unstructured Programming:: Books

The document discusses different programming paradigms and their characteristics, focusing on object-oriented programming. It defines what an object, class, and object-oriented programming are. Specifically, it states that an object contains data members and methods, a class defines the data type of an object, and in object-oriented programming each object knows its own class. The document contrasts this with procedural programming, where the main program coordinates procedure calls, and unstructured programming, where the main program directly operates on global data.

Uploaded by

Raghav Gupta
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Books 1) C++ How to program: Dietal and Dietal 2) Thinking in C++: Bruce Eckel Introduction To OOP As softwares became

increasingly complex, manageability often became a concern. The OOP paradigm focuses on data rather than processes, with programs composed of self-sufficient modules ("classes"), each instance of which ("objects") contains all the information needed to manipulate its own data structure ("members").

Unstructured programming:
Unstructured programming. The main program directly operates on global data.

Procedural programming: The main program coordinates calls to procedures and hands over Execution of procedures. After processing flow of controls proceed where the call was made.

Programs can now be written more structured and error free. For example, if a procedure is correct, every time it is used it produces correct results. Consequently, in cases of errors you can narrow your search to those places which are not proven to be correct.

Modular programming

Handling Single List Handling Multiple Lists

Problems
Explicit Creation and Destruction Decoupled Data and Operations Many functions for many data types

Object-oriented programming.
What is Object? Collection of data and methods. What is Class? Data type of object. What is obect oriented? Each object knows its own class. An object-oriented program may be viewed as a collection of interacting objects, as opposed to the conventional model, in which a program is seen as a list of tasks (subroutines) to perform.

References: http://gd.tuwien.ac.at/languages/c/c++oop-pmueller/node3.html#SECTION00300000000000000000 http://en.wikipedia.org/wiki/Object-oriented_programming Thinking in C++ 2nd Edition by Bruce Eckel Object Oriented Programming in C++ 4tt Edition byRpbert Lafore

You might also like