Yurttas/PL/OOL/CS/F/04/03/01/index page

From ZCubes Wiki
Jump to navigation Jump to search
Dr. Salih Yurttas yurttas@zcubes.com
programming languages - design principles, implementation constructs
c#

  1. inheritance, interfaces, polymorphism

    1. multiple inheritance - interface, class: abstraction, derivation, implementation - diamond problem

      • ABCD01.cs
        [ interface reference is used for object reference ]


      • IA.cs
        [ interface IA with properties ]
      • IB.cs
        [ interface IB extends IA ]
      • IC.cs
        [ interface IC extends IA ]


      • D.cs
        [ class D implements IB, IC ]

1 | 2 | classes, objects << 4 >> array, indexers, collections | 6 | 7 | 8 | 9 |10 |11 |12 |13