1) Framework is an advanced programming interface that provides some kind of communication protocols, programming technologies, libraries etc. The main purpose of the framework is to allow convenient way of usage specific tools that it includes. As a vivid example it could be .Net Framework – package of different libraries, technologies and even programming languages that allow creating programs, web-sites, databases for Windows platform. 2) Singleton is a class that encapsulates mechanism of instance creating. It allows to have a single instance of this class in all the program. Usually it is implemented via private constructor and private static instance of itself included in class definition. Class has static getter method that returns static instance of it. The purpose of this pattern is to hold protected state through all the program.
Comments
Leave a comment