Ask Question
20 May, 04:37

What is an attribute? Give an example of an entity with some attributes.

+4
Answers (1)
  1. 20 May, 06:31
    0
    Definition and example

    Explanation:

    An attribute defines a property of an object. Not only for an object but also it can be defined for any file or element. In other words we can say that an attribute of an object comprises of a name and a value of an element. Moreover it can be a type or class name of a file. An attribute example in C+ + to apply a constraint is:

    int g (int i)

    {

    if (i > 0) / / applying constraint/defining attribute

    return i;

    else

    return - 1;

    / / Code

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is an attribute? Give an example of an entity with some attributes. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers