Why (?) we can declare an object instance of a nested class (In) here:
new A. B()
The class is not static also.
And why (?) we can't define it like so:
A A = new A();
when you instantiate the class using its full name, even if it is declared within another class.
static class is not being. class B contained in class A and has nothing to do with its instances.
>Why we need static classes? Inherit and create objects impossible.
This is an exotic alternative to namespaces? What can you do with them?
they are necessary when creating, for example, Extension Methods
public static class MyExtensionProvider<br>
public static void DoSomething(this Object targetObject)<br>
about the as operator already answered.