Question: what is difference between method and attribute?
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.