Rezumat articol ediţie STUDIA UNIVERSITATIS BABE┼×-BOLYAI

În partea de jos este prezentat rezumatul articolului selectat. Pentru revenire la cuprinsul ediţiei din care face parte acest articol, se accesează linkul din titlu. Pentru vizualizarea tuturor articolelor din arhivă la care este autor/coautor unul din autorii de mai jos, se accesează linkul din numele autorului.

 
       
         
    STUDIA INFORMATICA - Ediţia nr.1 din 2016  
         
  Articol:   C# EXTENSION METHODS VERSUS JAVA DEFAULT METHODS IN THE CONTEXT OF MIXDECORATOR PATTERN.

Autori:  VIRGINIA NICULESCU.
 
       
         
  Rezumat:  VIEW PDF: C# EXTENSION METHODS VERSUS JAVA DEFAULT METHODS IN THE CONTEXT OF MIXDECORATOR PATTERN

Decorator design pattern is a very well-known pattern that allows additional functionality to be attached to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality. MixDecorator is an enhanced variant of the Decorator, which does not just eliminate some constraints of the original one, but also allows it to be used as a base for a general extension mechanism. This pattern introduces significant flexibility by allowing direct access to all added responsibilities. MixDecorator implementation imposes some constraints and we analyze and compare the implementation solutions in two of the most important mainstream object-oriented languages: Java and C#. This also leads to a comparison analysis between C# extension methods and Java default methods, or virtual extension methods as they are also called, in a more general context of trait-based programming.

Keywords and phrases: patterns, decorator, responsibilities, languages, Java, C#.

2010 Mathematics Subject Classification. 68P05.
 
         
     
         
         
      Revenire la pagina precedentă