P
P
ProblemBook.NET
Search…
P
P
ProblemBook.NET
ProblemBook.NET
LANGS
Задачник.NET
Math
Oop
«InheritanceNestedClass» (Задача)
«OverloadResolutionBasic» (Решение)
«OverloadResolutionOverride» (Решение)
«OverloadResolutionBasic» (Задача)
«OverloadResolutionOverride» (Задача)
«OverloadResolutionInheritance» (Решение)
«OverloadResolutionInheritance» (Задача)
«StaticFieldInGenericType» (Решение)
«StaticFieldInGenericType» (Задача)
«InheritanceNestedClass» (Решение)
ValueTypes
Strings
Linq
Multithreading
Summary
Введение
ProblemBook.NET
Attribution-NonCommercial-NoDerivatives 4.0 International
Powered By
GitBook
«InheritanceNestedClass» (Задача)
Что выведет следующий код?
class
Foo
{
protected
class
Quux
{
public
Quux
()
{
Console
.
WriteLine
(
"Foo.Quux()"
);
}
}
}
class
Bar
:
Foo
{
new
class
Quux
{
public
Quux
()
{
Console
.
WriteLine
(
"Bar.Quux()"
);
}
}
}
class
Baz
:
Bar
{
public
Baz
()
{
new
Quux
();
}
}
void
Main
()
{
new
Baz
();
}
Решение
Previous
Oop
Next
«OverloadResolutionBasic» (Решение)
Last modified
3yr ago
Copy link