Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Agregation vs Heredity

Agregation vs Heredity

Scheduled Pinned Locked Moved C#
questionvisual-studio
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Legolas_Bilbao
    wrote on last edited by
    #1

    I´ve a question i want to implemente a class paperA and class paperB only have 2 common attributes , i want to do using uml standards like heredity or agregation what is the best perform and why thanks

    Dios creo un equipo perfecto a los demas los lleno de extranjeros

    J 1 Reply Last reply
    0
    • L Legolas_Bilbao

      I´ve a question i want to implemente a class paperA and class paperB only have 2 common attributes , i want to do using uml standards like heredity or agregation what is the best perform and why thanks

      Dios creo un equipo perfecto a los demas los lleno de extranjeros

      J Offline
      J Offline
      Jun Du
      wrote on last edited by
      #2

      It's about relationship, not performance. You should get the relationship right. Inheritance describes that B is an A, but aggregation describes that B has an A. For example, a car is a vehicle, but a car has (is not) an engine.

      Best, Jun

      L 1 Reply Last reply
      0
      • J Jun Du

        It's about relationship, not performance. You should get the relationship right. Inheritance describes that B is an A, but aggregation describes that B has an A. For example, a car is a vehicle, but a car has (is not) an engine.

        Best, Jun

        L Offline
        L Offline
        Legolas_Bilbao
        wrote on last edited by
        #3

        then how can i develop this class? using what ink paper is paper and thermic paper is paper or with agregation thanks

        Dios creo un equipo perfecto a los demas los lleno de extranjeros

        J 1 Reply Last reply
        0
        • L Legolas_Bilbao

          then how can i develop this class? using what ink paper is paper and thermic paper is paper or with agregation thanks

          Dios creo un equipo perfecto a los demas los lleno de extranjeros

          J Offline
          J Offline
          Jun Du
          wrote on last edited by
          #4

          It sounds like inheritance.

          Best, Jun

          L 1 Reply Last reply
          0
          • J Jun Du

            It sounds like inheritance.

            Best, Jun

            L Offline
            L Offline
            Legolas_Bilbao
            wrote on last edited by
            #5

            thanks

            Dios creo un equipo perfecto a los demas los lleno de extranjeros

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups