P
puzzlecracker
.... I am coming off c++, so here is the list of question, I'd like to
get clarifications.
1. What's and the point of static constructor?
2. Why C# differs as to base class visibility in regard to Derived
class. In other words, Base class should be at least visible/
accessible as derived.
3. Can we member hiding by re-implementing the method in the derived
class with the same name but different signature and thus hiding the
base member. Here is the illustration:
public class A
{
public foo() {}
}
public class B
{
public foo(int i){}
}
4. Can we pass any type to indexer or only ints?
5.Can a member of a base lass be sealed, and not the whole class, thus
preventing a derived classes overriding it?
get clarifications.
1. What's and the point of static constructor?
2. Why C# differs as to base class visibility in regard to Derived
class. In other words, Base class should be at least visible/
accessible as derived.
3. Can we member hiding by re-implementing the method in the derived
class with the same name but different signature and thus hiding the
base member. Here is the illustration:
public class A
{
public foo() {}
}
public class B
{
public foo(int i){}
}
4. Can we pass any type to indexer or only ints?
5.Can a member of a base lass be sealed, and not the whole class, thus
preventing a derived classes overriding it?