c# - Is there something known as Private Class -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 8 जवाब
  • 4 जवाब
    1. अगर हम सार्वजनिक / निजी / संरक्षित नहीं निर्दिष्ट करते हैं, तो यह क्या होगा?
    2. क्या कोई निजी वर्ग के रूप में जाना जाता है?

      1: यह इस पर निर्भर करता है कि वर्ग नेस्टेड है या नहीं आंतरिक के लिए एक शीर्ष स्तर वर्ग डिफ़ॉल्ट निजी के लिए नेस्टेड क्लास डिफॉल्ट।

        वर्ग TopLevelClass {class PrivateClass {}}   

      2: हाँ, लेकिन केवल इसके लिए नेस्टेड कक्षाएं:

        वर्ग TopLevelClass {निजी वर्ग ExplicitlyPrivateClass {} कक्षा ImplicitlyPrivateClass {}}    

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c++ - Redefined variable in the other module -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -