OOP in Other languages
You must have seen that other languages such as C++, Java, and C# use the keyword
class to define a class. A class has properties and methods in it for every instance of that class.
Note: If you try to remove the
classkeyword the code will not compile and will generate an error.
The class, in this case, acts as a blueprint for the object. Or, you can say that the object will be an instance of this class.