Tag: programming languages
Questions Related to programming languages
-
"X extends Y" is correct if and only if X is a class and Y is an interface
-
"X extends Y" is correct if and only if X and Y are either both classes or both interfaces
-
"X extends Y" is correct if and only if X is an interface and Y is a class
-
None of these
-
shadowing
-
Coupling
-
Cohesion
-
None of the above
-
Interface can extend one or more interfaces
-
Interface can extend one or more class
-
Interface cannot implement a class or interface
-
All of the above
-
Cohesionn is the OO principle most closely associated with hiding implementation details
-
Cohesion is the OO principle most closely associated with making sure that classes know about other classes only through their APIs
-
None of these
-
Cohesion is the OO principle most closely associated with making sure that a class is designed witha single well focussed principle
-
Class D has low Cohesion
-
Class B has weak encapsulation
-
Class A has weak encapsulation
-
Class B has strong encapsulation