1.

Abstraction principle includes___________(a) Use abstraction at its minimum(b) Use abstraction to avoid longer codes(c) Use abstraction whenever possible to avoid duplication(d) Use abstraction whenever possible to achieve OOPThis question was posed to me during an online exam.My question is based upon Abstraction topic in chapter OOPs Concept & Features of Object Oriented Programming

Answer»

Correct answer is (c) Use abstraction whenever possible to avoid duplication

Best explanation: Abstraction principle INCLUDES use of abstraction to avoid duplication (usually of code). It this way the PROGRAM doesn’t CONTAIN any redundant functions and MAKE the program efficient.



Discussion

No Comment Found

Related InterviewSolutions