ENGLISH → NEPALI
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.
ट्रेटहरू इन्टरफेस र मिक्सिनबीच केही हुन्छन्, किनभने इन्टरफेसमा विधि हस्ताक्षर मात्र हुन्छन्, जबकि ट्रेटमा पूरा विधि परिभाषा पनि समावेश हुन्छ; अर्कोतिर मिक्सिनमा विधि परिभाषा हुन्छन्, तर तिनले विशेषतामार्फत अवस्था पनि बोक्न सक्छन्, जबकि ट्रेटहरूले सामान्यतया बोक्दैनन्।