What are classes in C

Classes are a basic component of OOP. It contains State and behavior. Class is a blueprint for object

State maintained in field, attributes, and property variables.

Behavior contains methods that modify and read the state.

How to declare a Class in C

Classes Contains state and behaviour

class Employee { // Methods (behavior) string GetName() { return name; } void SetName(string _name) { name =_name; } // filed variables string name = “default”; }