A thought occurred that can the relationship between a Gun and its Paryay be considered equivalent to a Class and its Objects?
(The principle of OOP says that a class is the blueprint/prototype of objects which defines the data and functions contained in its objects. It is an abstract representation. Objects, on the other hand, are the actual representations which contain the data and functions defined within the class.)
With respect to oops, it seems like -
Dravya = object
Gun = its attributes
Paryay = its state
Utpad = Initialising a variable in a for loop
Vyay = value of variable unset, when the loop runs
Dhruv = constant variable
To make it simple to understand (only for programmers ), no harm in using examples from anywhere. We can actually use many combinations like an
Object is द्रव्य and key inside are गुण. Although, it’s just a new means to understand the core concept.
Interesting example from programming !.
It suits the dravya/guna/paryay in some viewpoints.
We can think of different examples to understand the concepts.
The important thing is understand it as they are.
And different types of dravya are instances of Dravya class.