Example of OOP to understand the relation between Gun and Paryay?

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.)

Please clarify.

2 Likes

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

5 Likes

Interesting!

To make it simple to understand (only for programmers :wink:), 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.

5 Likes

Jai Jinendra,

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.

2 Likes

And different types of dravya are instances of Dravya class.

2 Likes