DEV Community

KIRUBAGARAN .K
KIRUBAGARAN .K

Posted on

What is class

A class is a user-defined structure that groups data and functions together. By creating instances (objects), these members can be accessed and used. It represents shared characteristics of a particular object type.

Example: Car is a class. Different cars may have different names and brands, but all share common properties like four wheels, speed limit, and mileage

Top comments (0)