answersLogoWhite

0

In object oriented programming cross cutting concerns cannot be implemented while in aspect-oriented these can be implemented easily, but if there is a logic mistake in implementing these cross-cutting concerns then the whole system will fail. In case of object-oriented whole system will not fail.(Excerpt from FrazzledDad blog @ http://frazzleddad.blogspot.com)Aspect-OrientedAspect-oriented programming looks at how many components or pieces of a system might need to interact. The intersections of these pieces are what are important in AOP. "Crosscutting" is a slice across several units, all of which interact during some operation. The article Discussing aspects of AOP in Communications of the ACM, Volume 44, Number 10 (2001) shows an example of a drawing editor with point and line elements. If the drawing is moved, both point and line elements need to update. A crosscut hits these elements for this event. Other examples might include logging or exception handling which hit several different layers in a system. (Viji Sarathy, Aspect Orienting .NET Components )Interface-OrientedInterface-oriented programming is a contract-based approach. Nether side of the interface cares how the other does its work, only that the two sides can communicate via an agreed-upon contract. WSDL-based web services are the prime example of this.Object-OrientedObject-Oriented programming is based on abstraction, encapsulation (data hiding), polymorphism and inheritance. Classes implement these concepts to build objects controlling or implementing a system.Abstraction allows loose coupling between components by providing a layer between objects so that one object isn't concerned with how the other implements its business rules. (Interfaces, layers) Great stuff when you want to isolate parts of the system so they can be swapped out without killing the rest of the sytsem.Encapsulation allows abstraction to work by hiding details of a class's implementation from calling classes. (Public vs. private fields)Inheritance enables base (parent) classes to have common functionality defined in it and passed down to child classes. A Shape class might have a field for color which is inherited by child classes of Square or Circle type.Polymorphism enables implementation of same-named public fields, allowing different classes to perform different actions on the same call - rendering a Square or Circle object differently in a graphic program, even though they might both be subclassed from a base Shape class. (Overriding)
User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the difference between java and object oriented programming?

java is a programming language/platform that embodies object oriented programming concepts. The question of what is the difference is like asking what is the difference between cars and a Volvo.


Difference between conventional programming and object oriented programming?

diff between oops and conventional programming


What is the difference between structured oriented programming procedure and oriented programming?

LOTTA


Difference between C and C programming language?

The C and C programming languages are one and the same. There is no difference between those languages.


What is the difference between online and offline programming?

Online programming is programming that has to occur while the computer or other device is connected to the internet. Offline programming doe not require an internet connection.


What is the difference between oriented programming language and high programming language?

Set/subset: Some high level programming languages are object oriented, but not all of them.


What is the difference between coding and programming?

Coding is more general -- there are many kinds of codes and different reasons for them. However, when it comes to computer slang, there is no difference between coding and programming.


Difference between overlays in programming and virtual memory?

abcd


What is difference between poor programming style and good programming style?

Good programming style is consistent and self-documenting, making it easy to both read and maintain.


Short note on structural programming and procedural programming?

There is no difference between procedural programing language & structure programing language.


What is the difference between debugging and programming?

Programming is the process of creating code. Debugging is the process of fixing problems in existing code.


What is the difference between linear and integer programming?

Integer programming is a method of mathematical programming that restricts some or all of the variables to integers. A subset of Integer programming is Linear programming. This is a form of mathematical programming which seeks to find the best outcome in such a way that the requirements are linear relationships.