Ask Question

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

+3
Answers (1)
  1. 16 April, 02:32
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers