Object Oriented programming is a superset of structured programming. Structured programming is as follows:
--Program start
var
var
var
function { ... }
function { ... }
function { ... }
main { ... }
--- Program End
You have units of code, which operate on variables, and are called in reference to those variables, to follow a structure acting on those variables.
Object oriented is as follows:
--- Program Start
object {
var
var
function { ... }
function { ... }
function { ... }
}
var
var
function { ... }
main { ... }
--- Program end
Variables can be objects, which have their own data and functions. Think like C and structures, except structures can have functions "in them" which operate specificly on their own data. Thus, instead of referencing a function (a block of code) and telling it to operate on a variableq you reference an object and tell it to perform an operation, most often on itself, specific to itself, using its own data. Instead of creating units of data to pass to functions which operate on them, you create objects and have them perform operations [on themselves].
Functions attached to objects don't need a specific name; rather than task_struct_sort_children(task) and acl_rules_struct_sort_children(task), you can have task and acl_rules with task->sort_children() and acl_rules->sort_children(), which have completely different specific function but the same logical function, and operate on the specific instance of the object.
structured oriented programming and object oriented programming have some features of similarities, but the distinction between the two is that the former relies to the GOTO statements thus the developer has a tendency to confuse while the latter is subgrouped from objects, classes, methods and hierarchies.
Structured programming tells the program what to do, step by step. For example:
Receive two numbers from input;
add them;
output them;
Object oriented programming creates several objects (like a button on the screen, a file, or a text box, etc..) that have properties, events and methods. Properties are values that the object can have. For example, the width, height, and the caption of the button would all be properties of a button.
An event is something that happens to an object, like being clicked, moved, or having text entered into it. A method is like a function, it is something that the object does when a certain event happens to it. For example, when a button is clicked, it executes a method which will change the text in a text box. This is an example of an event triggering a method that will change the text box's properties.
Instead of having a list of instructions, like structured programming, object oriented programming begins the program by waiting for an event to happen. This event can be a mouse click, the user scrolling down, or even the On Load event, which happens right when the program starts. When an event happens, the program will execute the method that corresponds to the event, and then will wait for more events to happen, until the program is ended. For example, when you load Microsoft Word, it will not do anything until you type in text or press a button. It will just wait for an event to happen. Object oriented programming is useful when you cannot predict what the user will do, or in what order. Instead of assuming that the user will trigger this event, and then will trigger that event, you can make use object oriented programming to make a program that will be ready for whatever the user does.
Object oriented software development methodlogy is not as complex as structure development. It is very easy to debug the object oriented code as comparative.Object oriented methodology focuses on the representing the problem using several real world object and their behaviour. BUt structured programming uses the program in a logical structured in hierarchy ( top to buttom process). It is reliable to use the object oriented methodology because it can be maintain ,resuse and extend as comparative to that of structured programmng.
Object oriented methodology uses several concepts such as encapsulation, inheritance , polymorphsm and message passing but structured used sequence selection and iteration.
so.it is better to use OOSD method to develop any software rather than SSD (structure software development ) to reduce the complexity.
Thank you ..
Structured Analysis
In Structured Analysis, the focus is only on process and procedures.Modeling techniques used in it are DFD(Data Flow Diagram), Flowcharts etc.
This approach is old and is not preferred
Object Oriented AnalysisWhereas in Object Oriented Analysis, the focus is more on capturing the real world objects in the current scenario that are of importance to the system. [2] It stresses more on data structure and less on procedural structure. Without actually identifying objects, what are you going to interact with, and whose state will you change. In this approach, objects are identified, their relationships among each other, possible states that each object can be in, and finally how all objects collaborate with each other to achieve a broader system goal are identified.Modeling techniques used in it are UML(Unified modeling Language), that can present both structural and behavioural/procedural aspect of the system. UML includes Class Diagram, State Diagram, Use case diagram, Sequence Diagram, etc.
Using this approach keeps your system more maintainable and reusable, and is a common choice nowadays
by msmzathir@gmail.com
they are not both used at the same time...
Process Oriented : Program is organised around methods.
Object Oriented : Program is organised around data.
Object Oriented Analysis & Design
A structure oriented language is one, which should the following structure as Documentation Section, Link section, Definition Section, Global declaration section and Functions(including Main functions) in an hierarchical order. This order cannot be interchanged, but structure oriented language like C can have these sections as optional. Correct me if am wrong, Neela.T
C does not contain any built in constructs for object oriented programming. Methods and Data are generally not stored in an object structure in c.
OOP (Object Oriented Programming) is the implementation phase of OOD. OOD (Object Oriented Design) is a philosophy that considers things as objects that have attributes and methods. There can be public attributes and methods, and there can be private attributes and methods. The public interface is used to design the relationship between the object and its users, while the private interface is used to design the implementation of how that object works. If done correctly, the private implementation can be changed without requiring any change to the public interface or to its users. Often, a new object can be defined as a derivation of some other object, such as an officer is an employee. The derivation would add the necessary public and private aspects of an officer while inheriting the prior implementation of the public and private aspects of an employee.
Encapsulation,Inheritance and Polimorphisim...
Object Oriented Analysis & Design
Hint. Is not object oriented.
David A. Taylor has written: 'Object-oriented technology' -- subject(s): Database design, Object-oriented databases, Development, Computer software 'Object-oriented information systems' -- subject(s): Management information systems, Object-oriented databases, System design
Arabic and Chinese
DBMS Deesign implementation
exam registeration
The fundamental difference is that in C++ object-oriented programming (OOP) was added. C is a procedural language (that means. top-down structure design), where as C++, which is an extension of C itself, is an object oriented language.
In function oriented design a problem is thought in form of data and functions to manipulate those data. Both entities remain independent of each other. On the other hand in object oriented design a problem is thought in form of an encapsulated entity where both data and functions stay together in form of an object. Following link has a nice collection of articles of object oriented programming: http://cs-fundamentals.com/java-programming/java-programming-tutorials.php
Stephen Gilbert has written: 'Object-oriented design in Java' -- subject(s): Java (Computer program language), Objektorientierte Programmierung, Java (Programmiersprache), CD-ROM, Systementwurf, Object-oriented programming (Computer science) 'Object-oriented design in Java' -- subject(s): Java (Computer program language), Object-oriented programming (Computer science)
Object-oriented design is a way of programming software by planning a system of interacting objects. There are many discussion groups and forums on the internet where programmers exchange tips and experiences.
A structure oriented language is one, which should the following structure as Documentation Section, Link section, Definition Section, Global declaration section and Functions(including Main functions) in an hierarchical order. This order cannot be interchanged, but structure oriented language like C can have these sections as optional. Correct me if am wrong, Neela.T
Object oriented analysis and design.