Question: what is the difference between methods and data attributes of objects?
Answer: attributes are the features of the objects or the variables used in a class whereas the methods are the operations or activities performed by that object defined as functions in the class.