ENGLISH → HINDI
mixin
01
noun
मिक्सिन; ऐसा वर्ग जिसका उदाहरण नहीं बनाया जा सकता और जो उपवर्ग को विरासत में देने योग्य कार्यक्षमता प्रदान करता है
An uninstantiable class that provides functionality to be inherited by a subclass.
In a sentence
Traits are somewhat between an interface and a mixin, as an interface contains only method signatures, while a trait includes also the full method definitions; on the other side mixins include method definitions, but they can also carry state through attributes, while traits usually don't.
ट्रेट्स इंटरफ़ेस और मिक्सिन के बीच कुछ-कुछ होते हैं, क्योंकि इंटरफ़ेस में केवल विधि हस्ताक्षर होते हैं, जबकि ट्रेट में पूरी विधि परिभाषाएँ भी शामिल होती हैं; दूसरी ओर मिक्सिन में विधि परिभाषाएँ होती हैं, लेकिन वे विशेषताओं के माध्यम से स्थिति भी रख सकते हैं, जबकि ट्रेट्स आम तौर पर नहीं रखते।