Question

QUESTION 5 In our flight booking sample, à Generic Flightâ is a: O Generic class o General Electric class Metaclass o General

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answers 5. NO SAMPLE IS GIVEN HENCE USE BELOW EXPLAINATION OR GO WITH THIS ANSWER GENERIC CLASS

Explaination:- You can identify it if it is a generic method, you always let the caller decide, which type arguments to use for the type parameters. The implementation of the method must be able to deal with all possible types arguments (and it doesn’t even have a way to ask for the actual type arguments). Hence from my view it will be a generic class IF it dosenot have that caller decide,

ANSWER 6. swim lanes

Explaination:- they are used to parition / spilting of threads.

ANSWER 7:High Cohesion and low coupling

Explaination:-High Cohesion and low coupling give us better designed code that is easier to maintain.Coupling refers to the degree to which the different modules/classes depend on each other, it is suggested that all modules should be independent as far as possible, that's why low coupling.Cohesion refers to the degree to which the elements of a module/class belong together, it is suggested that the related code should be close to each other, so we should strive for high cohesion and bind all related code together as close as possible.

ANSWER 8: NONE OF THE BELOW

Explaination:- 1. class name can start with both lower and upper case, so only lower case is not correct.

2. condition can be used without curly braces we use if else with braces for a single line implemenation.

3. can be in both cases

4. can be in both cases

If you have any problem or doubt, please comment below, I would love to help you.

Add a comment
Know the answer?
Add Answer to:
QUESTION 5 In our flight booking sample, à Generic Flightâ is a: O Generic class o...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • What is the role of polymorphism? Question options: Polymorphism allows a programmer to manipulate objects that...

    What is the role of polymorphism? Question options: Polymorphism allows a programmer to manipulate objects that share a set of tasks, even though the tasks are executed in different ways. Polymorphism allows a programmer to use a subclass object in place of a superclass object. Polymorphism allows a subclass to override a superclass method by providing a completely new implementation. Polymorphism allows a subclass to extend a superclass method by performing the superclass task plus some additional work. Assume that...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT