\"Attributes and Methods\" Please respond to the following: Imagine you are a pa
ID: 3560639 • Letter: #
Question
"Attributes and Methods" Please respond to the following: Imagine you are a part of a team that is tasked with writing a mobile app that will allow users to store information for all of their contacts (e.g., friends, family, etc.). Identify at least two (2) attributes of the object contact in this application. Explain the purpose of the attributes you have identified, and explain at least one (1) reason why these attributes are important. Using the scenario from the first part of this discussion, identify at least one (1) method for the object contact in this application. Explain the purpose of the method, and explain at least (1) reason why the method is important.
Explanation / Answer
Attributes : It is nothing but properties of class (real time entity)
Methods : The actions recognized by an object.
Attributes of contacts :
Methods of contacts are :
Purpose of Attributes :
As already mentioned Contact is real time entity.
Contact Name -- we can identify based on name
Contact Number -- We can use to identify based on number
Important of Attributes : Without attributes we cannot identiy the object.
for example Contact Name attribute is used to store contact name similarly contact number and contact group type.
Purpose of Actions:
Adding new contacts (using add new method)
deleting existing contacts (using delete method)
modifying existing contacts (using edit method)
Important of Actions: Without Actions we cannot add,modify or delete contact details.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.