How to extend a class when one of the optional argument is not a member variable and it is required?

Posted by Editorial Staff | Updated on

If you want to extend a class when one of the optional argument is not a member variable and it is required?

1. this.length requires member variable.
2. @required requires assert
3. use : instead of =
4. make a class extended TickerProvider because it is abstract class. I made myTickerProvider as the example.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers