Ask Question
24 January, 05:15

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

+5
Answers (1)
  1. 24 January, 05:41
    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?
Find an answer to your question ✅ “What is an attribute? Give an example of an entity with some attributes. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers