क्या कोई मुझे कृपया बताएगा कि sealed
का निम्नलिखित उपयोग संकलित नहीं है? हालांकि, अगर मैं sealed
final
के साथ प्रतिस्थापित करता हूं और इसे जावा के रूप में संकलित करता हूं, तो यह काम करता है।सी # सीलबंद बनाम जावा फाइनल
private sealed int compInt = 100;
public bool check(int someInt)
{
if (someInt > compInt)
{
return true;
}
return false;
}
http://stackoverflow.com/questions/2069010/is-there-any-functional-difference-between-c-sharp-sealed-and-javas-final-keywo –
बराबर करने के लिए: इस छवि की जाँच करें सी # में सदस्यों के लिए 'अंतिम' 'readonly' है। –