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. Design and Architecture
  4. What kind of relationship is possible between two classes?

What kind of relationship is possible between two classes?

Scheduled Pinned Locked Moved Design and Architecture
question
8 Posts 5 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.
  • A Offline
    A Offline
    ankum16
    wrote on last edited by
    #1

    Please describe in brief. It was asked during one of my interviews.

    P L M A 4 Replies Last reply
    0
    • A ankum16

      Please describe in brief. It was asked during one of my interviews.

      P Offline
      P Offline
      Peter Leow
      wrote on last edited by
      #2

      Refer: UML Classes and Relationship[^]

      A 1 Reply Last reply
      0
      • A ankum16

        Please describe in brief. It was asked during one of my interviews.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        ankum16 wrote:

        It was asked during one of my interviews.

        Curious, what company, and for which position? :)

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        Z 1 Reply Last reply
        0
        • L Lost User

          ankum16 wrote:

          It was asked during one of my interviews.

          Curious, what company, and for which position? :)

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          Z Offline
          Z Offline
          ZurdoDev
          wrote on last edited by
          #4

          One which you won't want. :)

          There are only 10 types of people in the world, those who understand binary and those who don't.

          L 1 Reply Last reply
          0
          • Z ZurdoDev

            One which you won't want. :)

            There are only 10 types of people in the world, those who understand binary and those who don't.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Yes, but I want to note the name just to be sure, and for any future reference. Works wonders with the "permalink" button. :)

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

            1 Reply Last reply
            0
            • P Peter Leow

              Refer: UML Classes and Relationship[^]

              A Offline
              A Offline
              ankum16
              wrote on last edited by
              #6

              Thanks Peter. This is what I was looking for. It was an easy illustration. Could you please help me - Which book or link is better to learn more about design patters?

              1 Reply Last reply
              0
              • A ankum16

                Please describe in brief. It was asked during one of my interviews.

                M Offline
                M Offline
                Marc Koutzarov
                wrote on last edited by
                #7

                Parent Child ?

                1 Reply Last reply
                0
                • A ankum16

                  Please describe in brief. It was asked during one of my interviews.

                  A Offline
                  A Offline
                  ankum16
                  wrote on last edited by
                  #8

                  I think now I know the answer.. Possible relationship between two classes are: 1. Association 2. Aggregation 3. Composition 4. Generalization

                  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