As title. I know that a question mark in object fields means that it's not required in this type. But I don't know what it means when it's used in defining a class, to be specific I saw this in the source code:
export class MockServer {
private server?: Server;
...
Could anyone explain why we need it here? Does it mean the class doesn't have this property to be this type? But this explanation seems to be strange.