Unstructured Programming:: Books
Unstructured Programming:: Books
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
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