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 .
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 .