mardi 16 juin 2020

What is the purpose of creating a `class object`?

I have a good understanding on oop concepts but I'd like to dive into some deep concepts.

Java and Python both are object oriented languages, also python can work as a non-object oriented language, but it is designed as a oop language. So I'm raising this question referring to both languages,

Now I know that when we create a class in python that class itself is an object.

In Java reflection, the JVM creates objects of each class as Class class's instances.

From my knowledge a class is a structure or like a blueprint for creating an instance.

So why does these class objects are made?

Is it to control the behaviour of each instances of related classes?





Aucun commentaire:

Enregistrer un commentaire