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. The Lounge
  3. What's the difference between Property and Attribute

What's the difference between Property and Attribute

Scheduled Pinned Locked Moved The Lounge
csharphtmlcomperformancetutorial
50 Posts 26 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.
  • Z ZurdoDev

    Within .Net, my understanding is that a property will have a getter and/or a setter with possibly some logic in them. And an attribute would just be a public variable, for example, where there is no logic in the get and set. But that is just from my experience, nothing official. Could be totally wrong.

    Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

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

    OP:

    Quote:

    No, I don't mean in .Net, I mean semantically.

    Message Signature (Click to edit ->)

    1 Reply Last reply
    0
    • R Rage

      Jörgen Andersson wrote:

      Or is there an even better word?

      A feature.

      Do not escape reality : improve reality !

      J Offline
      J Offline
      Jorgen Andersson
      wrote on last edited by
      #12

      So a bug? :~

      Wrong is evil and must be defeated. - Jeff Ello

      F 1 Reply Last reply
      0
      • L Lost User

        OP:

        Quote:

        No, I don't mean in .Net, I mean semantically.

        Message Signature (Click to edit ->)

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

        Yes, I read that. But the meaning in .Net might actually be the real meaning. Just saying.

        Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

        1 Reply Last reply
        0
        • L Lost User

          a property is, well a property - the land under your house. Can't move it, it's fixed. an attribute is the house, can replace it, can completely remove it, grass is an attribute, a hole in the proptery is an attribute - all those can be changed. sooo, everything about your car is an attribute. The fact it is a car is a property. ok, can get silly and ask "what if I remove all the wheels, is it still a car?" well, it weelie is still a car, just missing some of it's attributes (so not a very useful car).

          Message Signature (Click to edit ->)

          J Offline
          J Offline
          Jorgen Andersson
          wrote on last edited by
          #14

          Lopatir wrote:

          sooo, everything about your car is an attribute. The fact it is a car is a property.

          So the colour of the car is an attribute. The wheel is a property in it self, but an attribute to the car?

          Wrong is evil and must be defeated. - Jeff Ello

          1 Reply Last reply
          0
          • J Jorgen Andersson

            No, I don't mean in .Net, I mean semantically. Say for example I want to describe a car. It has a colour, top speed, engine size, length, leather seats and so on. When is it an attribute and when is it a property? Or is there an even better word?

            Wrong is evil and must be defeated. - Jeff Ello

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

            Most English speakers don't use those terms. We tend to say watchamacallit, or thingummybob, or just point at it. :laugh:

            1 Reply Last reply
            0
            • J Jorgen Andersson

              No, I don't mean in .Net, I mean semantically. Say for example I want to describe a car. It has a colour, top speed, engine size, length, leather seats and so on. When is it an attribute and when is it a property? Or is there an even better word?

              Wrong is evil and must be defeated. - Jeff Ello

              P Offline
              P Offline
              PeejayAdams
              wrote on last edited by
              #16

              I'd say that the two words were essentially synonymous outside of IT.

              Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain

              1 Reply Last reply
              0
              • J Jorgen Andersson

                So a bug? :~

                Wrong is evil and must be defeated. - Jeff Ello

                F Offline
                F Offline
                Forogar
                wrote on last edited by
                #17

                Quote:

                So a bug?

                No, no. A Bug is an "undocumented feature"; a "feature" is just something that might or might not work.

                - I would love to change the world, but they won’t give me the source code.

                J 1 Reply Last reply
                0
                • J Jorgen Andersson

                  No, I don't mean in .Net, I mean semantically. Say for example I want to describe a car. It has a colour, top speed, engine size, length, leather seats and so on. When is it an attribute and when is it a property? Or is there an even better word?

                  Wrong is evil and must be defeated. - Jeff Ello

                  F Offline
                  F Offline
                  Forogar
                  wrote on last edited by
                  #18

                  In the English language "property" and "attribute" are exactly the same meaning in the case where "property" is a property of an object such as "a banana is yellow". In this case, "yellow" is an attribute or property of the banana. If you are buying a house then the house can be referred to as a "property" but this is a different meaning and has nothing to do with "attribute". You can also "attribute" a quotation to a given person but this is a different meaning and has nothing to do with "property". Additionally, you can say, "That is my property" when referring to an object that belongs to you. Again, nothing to do with "attribute".

                  - I would love to change the world, but they won’t give me the source code.

                  J W 2 Replies Last reply
                  0
                  • F Forogar

                    In the English language "property" and "attribute" are exactly the same meaning in the case where "property" is a property of an object such as "a banana is yellow". In this case, "yellow" is an attribute or property of the banana. If you are buying a house then the house can be referred to as a "property" but this is a different meaning and has nothing to do with "attribute". You can also "attribute" a quotation to a given person but this is a different meaning and has nothing to do with "property". Additionally, you can say, "That is my property" when referring to an object that belongs to you. Again, nothing to do with "attribute".

                    - I would love to change the world, but they won’t give me the source code.

                    J Offline
                    J Offline
                    Jorgen Andersson
                    wrote on last edited by
                    #19

                    I was hoping one was more related to nouns and the other one to adjectives or adverbs

                    Wrong is evil and must be defeated. - Jeff Ello

                    L F 2 Replies Last reply
                    0
                    • F Forogar

                      Quote:

                      So a bug?

                      No, no. A Bug is an "undocumented feature"; a "feature" is just something that might or might not work.

                      - I would love to change the world, but they won’t give me the source code.

                      J Offline
                      J Offline
                      Jorgen Andersson
                      wrote on last edited by
                      #20

                      If the undocumented feature is working, is it still a bug?

                      Wrong is evil and must be defeated. - Jeff Ello

                      1 Reply Last reply
                      0
                      • L Lost User

                        a property is, well a property - the land under your house. Can't move it, it's fixed. an attribute is the house, can replace it, can completely remove it, grass is an attribute, a hole in the proptery is an attribute - all those can be changed. sooo, everything about your car is an attribute. The fact it is a car is a property. ok, can get silly and ask "what if I remove all the wheels, is it still a car?" well, it weelie is still a car, just missing some of it's attributes (so not a very useful car).

                        Message Signature (Click to edit ->)

                        C Offline
                        C Offline
                        CodeWraith
                        wrote on last edited by
                        #21

                        What if I added some more properties and turned it into a boat and a helicopter all at once? Also it's important that it runs on raspberry juice (or whale oil) and has a robot as the pilot[^].

                        I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                        1 Reply Last reply
                        0
                        • L Lost User

                          den2k88 wrote:

                          property, attribute are mostly interchangeable AFAIK

                          disagree, it's contextually dependent. Example: a yellow banana property: banana - it can not be anything else (excluding if destroyed) attribute: color: yellow - the color of the banana can change - left alone will become brown, black, slime, destroyed but the color itself (not color of the banana) is a property. yellow is yellow, it can be no other.

                          Message Signature (Click to edit ->)

                          M Offline
                          M Offline
                          musefan
                          wrote on last edited by
                          #22

                          Nah, Banana would by the type and Colour would be a property/attribute of the Banana type

                          B E 2 Replies Last reply
                          0
                          • R Rage

                            When you list up the someone's inner properties, it's a tribute. * Do not bother, I'm already gone *

                            Do not escape reality : improve reality !

                            S Offline
                            S Offline
                            Slacker007
                            wrote on last edited by
                            #23

                            I rather liked this one. bookmarked.

                            1 Reply Last reply
                            0
                            • J Jorgen Andersson

                              I was hoping one was more related to nouns and the other one to adjectives or adverbs

                              Wrong is evil and must be defeated. - Jeff Ello

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

                              Isn't the English language fun! :-D

                              "When you are dead, you won't even know that you are dead. It's a pain only felt by others; same thing when you are stupid." Ignorant - An individual without knowledge, but is willing to learn. Stupid - An individual without knowledge and is incapable of learning. Idiot - An individual without knowledge and allows social media to do the thinking for them.

                              1 Reply Last reply
                              0
                              • L Lost User

                                den2k88 wrote:

                                property, attribute are mostly interchangeable AFAIK

                                disagree, it's contextually dependent. Example: a yellow banana property: banana - it can not be anything else (excluding if destroyed) attribute: color: yellow - the color of the banana can change - left alone will become brown, black, slime, destroyed but the color itself (not color of the banana) is a property. yellow is yellow, it can be no other.

                                Message Signature (Click to edit ->)

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

                                property is the value of an attribute?

                                P 1 Reply Last reply
                                0
                                • L Lost User

                                  property is the value of an attribute?

                                  P Offline
                                  P Offline
                                  PIEBALDconsult
                                  wrote on last edited by
                                  #26

                                  They other way around maybe.

                                  1 Reply Last reply
                                  0
                                  • J Jorgen Andersson

                                    I was hoping one was more related to nouns and the other one to adjectives or adverbs

                                    Wrong is evil and must be defeated. - Jeff Ello

                                    F Offline
                                    F Offline
                                    Forogar
                                    wrote on last edited by
                                    #27

                                    Nope! It's just that simple. Two words for the same thing; just like "motorcar" and "automobile". The English language has a lot of redundancy because we stole a lot of our words from several different languages so we end up with a lot of duplicate use cases.

                                    - I would love to change the world, but they won’t give me the source code.

                                    1 Reply Last reply
                                    0
                                    • J Jorgen Andersson

                                      No, I don't mean in .Net, I mean semantically. Say for example I want to describe a car. It has a colour, top speed, engine size, length, leather seats and so on. When is it an attribute and when is it a property? Or is there an even better word?

                                      Wrong is evil and must be defeated. - Jeff Ello

                                      P Offline
                                      P Offline
                                      PIEBALDconsult
                                      wrote on last edited by
                                      #28

                                      I agree that they're pretty much synonymous in everyday usage. But... What are the properties of _A_ car? What are the attributes of _THIS_ car?

                                      J 1 Reply Last reply
                                      0
                                      • R Rage

                                        When you list up the someone's inner properties, it's a tribute. * Do not bother, I'm already gone *

                                        Do not escape reality : improve reality !

                                        N Offline
                                        N Offline
                                        Nelek
                                        wrote on last edited by
                                        #29

                                        If you have a property, you will have to pay a tribute :rolleyes: :rolleyes:

                                        M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                                        1 Reply Last reply
                                        0
                                        • J Jorgen Andersson

                                          No, I don't mean in .Net, I mean semantically. Say for example I want to describe a car. It has a colour, top speed, engine size, length, leather seats and so on. When is it an attribute and when is it a property? Or is there an even better word?

                                          Wrong is evil and must be defeated. - Jeff Ello

                                          S Offline
                                          S Offline
                                          Shuqian Ying
                                          wrote on last edited by
                                          #30

                                          a property is an "intrinsic" quality of a subject and an attribute is a quality of the subject perceived by an observer? they can be identical, but there are also chances that they differ ...

                                          Find more in V-NET: connects your resources anywhere[^].

                                          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