2 Marks and 16 Marks UNIT-I PART-A 1.What is a class? A class is a blueprint, or prototype, that defines the variables and the methods common to all objects of a certain…