Aakhri Jung!
5 posters
Page 2 of 3
Page 2 of 3 • 1, 2, 3
Re: Aakhri Jung!
In the future, you are implementing a system for time travel. It is to allow you to travel to any era for your life, and later, you can return to the present, or to another era you have been to. Once you return, everything is as it was when you left.
Memento
Memento
ledzep93- Posts : 9
Join date : 2016-04-29
Re: Aakhri Jung!
Here is a physical analogy to a design pattern. Which pattern? When you call Microsoft tech support, you deal with a Level 1 consultant. If (s)he cant answer your question, eventually you are routed to a Level 2 consultant. If this consultant cant answer your question, you are transferred to a Level 3 consultant.
COR
COR
ledzep93- Posts : 9
Join date : 2016-04-29
Re: Aakhri Jung!
If we suppose the answer is returned in terms of pi where pi is the universal constant, then the incorporated post condition would be:
-pi/2 <= y <= pi2
this seems right..
-pi/2 <= y <= pi2
this seems right..
gorydog- Posts : 10
Join date : 2016-04-29
Re: Aakhri Jung!
class Car {
//At ABC showroom a car can be an Audi/BMW, can be a an automatic or manual transmission.
// Can have airbags or not. And it may be a convertible.
}
class myPattern{
void setMake(String Make) {//set the make}
void setTransmissionType() {//make the system remember the transmission type}
void setConvertible() {//make the system remember this is a convertible) }
void setWithAirbags() {//make the system remember this car comes with airbags}
}
To build a car the operator will send each option step by step and then construct the final car with the right options.
BUILDER
//At ABC showroom a car can be an Audi/BMW, can be a an automatic or manual transmission.
// Can have airbags or not. And it may be a convertible.
}
class myPattern{
void setMake(String Make) {//set the make}
void setTransmissionType() {//make the system remember the transmission type}
void setConvertible() {//make the system remember this is a convertible) }
void setWithAirbags() {//make the system remember this car comes with airbags}
}
To build a car the operator will send each option step by step and then construct the final car with the right options.
BUILDER
Re: Aakhri Jung!
Anyone working on this question????
4 points each
Which design pattern is used in this program? Select from the dropdown list below.
4 points each
Which design pattern is used in this program? Select from the dropdown list below.
Re: Aakhri Jung!
Suppose we are designing a hierarchy of cars for an ordering system. The system has a notion of a basic car. Instead of being a basic car, the vehicle we are ordering could also be a sports car, a minivan, or an SUV. Various features can be added to each of these cars: premium sound system, rear video camera, collision avoidance, etc. Cars with each set of features behave in a certain way. But we dont want to create separate subclasses for each combination of cars and features.
Decorator
Decorator
gorydog- Posts : 10
Join date : 2016-04-29
Re: Aakhri Jung!
Both programmers and testers create their test cases before code development starts.
In the "lock, modify, unlock" approach in version control systems, a lock must be acquired on the entire project.
Controllers must validate models before they are persisted in the database.
In the "lock, modify, unlock" approach in version control systems, a lock must be acquired on the entire project.
Controllers must validate models before they are persisted in the database.
sasti_randi- Posts : 14
Join date : 2016-04-29
Re: Aakhri Jung!
wo 4 wale ka muje
a) observer
b) bridge
c) factory lagg ra hai
although not sure
a) observer
b) bridge
c) factory lagg ra hai
although not sure
sasti_randi- Posts : 14
Join date : 2016-04-29
Re: Aakhri Jung!
naaa yaar wo ya to observer h ya command h
sasti_randi- Posts : 14
Join date : 2016-04-29
Re: Aakhri Jung!
r system, the mobile site is different from the desktop site. However, some users wish to see the desktop site on their mobile devices. When such a request is made, we handle the request and show the user the desktop site. What pattern are we using here
Command
We are building Taypals add a payment option feature. A user can add a credit card, debit card, or bank account. The processing steps differ depending on the given payment option
strategy
Command
We are building Taypals add a payment option feature. A user can add a credit card, debit card, or bank account. The processing steps differ depending on the given payment option
strategy
sasti_randi- Posts : 14
Join date : 2016-04-29
Re: Aakhri Jung!
(d) A design pattern that requires making the constructor private ??
gorydog- Posts : 10
Join date : 2016-04-29
Re: Aakhri Jung!
A design pattern that requires making the constructor private ?? singleton
piefgpi- Posts : 8
Join date : 2016-04-29
Re: Aakhri Jung!
You are tasked with designing an application for scheduling a conference room. This process uses web services from the facilities team for heating, IT team for audiovisual and with security to grant access to the rooms at the booked time. However, to save employees time you create simple interface which takes care of this in the background. What pattern is used here ??
abstract factory is it ?
abstract factory is it ?
gorydog- Posts : 10
Join date : 2016-04-29
Page 2 of 3 • 1, 2, 3
Page 2 of 3
Permissions in this forum:
You cannot reply to topics in this forum
|
|