A class definition can contain three parts:

  

· Every class has a name.

· Most classes contain data, although this is not required.

· Most classes contain methods, although this is not required. 

D. Please define the term class and explain how it relates to an object or instance of that class. You need to use examples to demonstrate how classes provide a blueprint for the objects of the class.

E. Please describe attributes and methods, the two components of classes. Use real-world examples to explain how attributes and methods define a class.

                                                                            The Custom Essays