Both Class and I'D are same?

About class and I’D.

No a class can be linked with multiple attributes whereas id’s are unique and can’t be used with multiple attributes.

Id is Identifier like school ID, College ID, Aadhaar Card no. is a best example of id we cannot have same aadhaar card no. for two people. Id is something which is unique and cannot be repeated in a code where does class can be repeated and can have many attributes with same class or one attribute with many classes.