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

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести