Sapient
Company
Programming
Bob is a software engineer and works of the Government of India. The government asks him to design a small ATM printing application. Which can generate multiple types of statements of the transcation including Mini statement. Detailed statement with minimized memory consumption. How would Bob accomplish this?
1) Bob would use Factory design pattern to generate multiple types of statements and Singleton design pattern for reducing memory consumption by creating a single instance of the StatementFactory class.
2) Bob would use Material design pattern to generate multiple types of statements and Singleton design pattern for reducing memory consumption by creating a single instance of the StatementFactory class.
3) Bob would use Singleton design pattern to generate multiple types of statements and Factory design pattern for reducing memory consumption by creating a single instance of the StatementFactory class.
4) None of the given options
Read Solution (Total 2)
-
- Bob would use Factory design pattern to generate multiple types of statements and Singleton design pattern for reducing memory consumption by creating a single instance of the StatementFactory class.
- 7 years agoHelpfull: Yes(0) No(1)
- 1) Bob would use Factory design pattern to generate multiple types of statements and Singleton design pattern for reducing memory consumption by creating a single instance of the StatementFactory class.
- 3 years agoHelpfull: Yes(0) No(0)
Sapient Other Question