I actually learn c# and i stuck at this theme:
what does this mean: [Baseclass] [name] = new [Subclass]
i only understand that i can use that as a parameter like
public void DoSomething(Book _book)
{
if (_book is PokemonBook)
{
Console.WriteLine("It's a Pokemon-Book!");
}
else
{
Console.WriteLine("idk");
}
}
but i dont understand this [Baseclass] [name] = new [Subclass], when do is use this and what does it do?
and yes, it's a stupid question