Check all correct statements about class SomeClass:
 
internal sealed class SomeClass 
{ 
      public void SomeMethod() 
      { 
      } 
}
 
Explanation
1) SomeClass extend System.Object implicitly
2) SomeClass can not have descendants (sealed modifier means that the class can not have descendants)
3) SomeClass is available only within assembly in which it is defined (internal modifier defines a class as internal)
4) explicit definition of the constructor without parameters for a reference type is not necessary - the compiler will create it if the constructor is not defined explicitly
5) SomeClass - a reference type, as inherited from object

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes