Singleton and abstract Class



  • Decided to patter. Singleton for general development, there was no development). Despite the lipstick of descriptions, did he not understand whether he gave any advantage over, say, the usual abstract class? So I had the impression that there was more inconvenience, and the ordinary abstract class did the same. Maybe I just can't cook it.



  • The abstract class doesn't have any copies at all. It is usually used as a basis for further inheritance. Singleton has always one copy. It is sometimes used, for example, to connect to the OBD system or other things that are required by an annex in a single copy.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2