Select all correct statements about following class:
 
internal sealed class SomeClass 
{ 
      public void SomeMethod() 
      { 
      } 
}
 
Explanation
1) SomeClass implicitly inherits form System.Object
2) SomeClass 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 in case constructor is not defined explicitly
5) SomeClass is of a reference type since it inherits from object

Follow CodeGalaxy

Mobile Beta

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