🔍
Consider the following two statements: (a) A publicly derived class is a subtype of its base class. (b) Inheritance provides for code reuse. Which of the following statements is correct? (A) Both the statements (a) and (b) are correct (B) Neither of the statements (a) and (b) are correct (C) Statement (a) is correct and (b) is incorrect (D) Statement (a) is incorrect and (b) is correct
0 like 0 dislike

1 Answer

Answer: A
0 like 0 dislike

Related questions

Consider the following statements related to compiler construction: I. Lexical Analysis is specified by context-free grammars and implemented by pushdown automata. II. Syntax Analysis is specified by regular expressions and implemented by ... Only l (2) Only ll (3) Both I and II (4) Neither I nor Il
Answer : Answer: 4...

View solution
0 like 0 dislike
1 answer

Consider the following statements for priority queue: S1: It is a data structure in which the intrinsic ordering of the elements does determine the result of its basic operations. S2: The elements of a priority queue ... . (C) SI is incorrect and S2 is correct. (D) Both S1 and S2 are correct.
Answer : (D) Both S1 and S2 are correct....

View solution
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer

Abstraction and encapsulation are fundamental principles that underlie the object oriented approach to software development. What can you say about the following two statements? I. Abstraction allows us to focus on what something ... and II are correct. (3) Only II is correct. (4) Only I is correct.
Answer : (1) Neither I nor II is correct....

View solution
0 like 0 dislike
1 answer

Which of the following statement(s) with regard to an abstract class in JAVA is/are TRUE? I. An abstract class is one that is not used to create objects. II. An abstract class is designed only to act as a base class ... by other classes. (1) Only l (2) Only II (3) Neither I nor II (4) Both l and II
Answer : Both l and II...

View solution
0 like 0 dislike
1 answer

50.5k questions

47.1k answers

240 comments

7.0k users