Which of the following concept is often expressed by the phrase, 'One interface, multiple methods'?
Abstraction
Polymorphism
Inheritance
Encapsulation
Answer and explanation
No explanation is available for this question yet.
ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
9 practice sets · Page 1 of 1
Which of the following concept is often expressed by the phrase, 'One interface, multiple methods'?
Abstraction
Polymorphism
Inheritance
Encapsulation
No explanation is available for this question yet.
Which Keyword from the following is used to inherit properties from one class into another?
extends
subclasses
native
all of the mentioned
No explanation is available for this question yet.
Which of the following supports the concept of hierarchical classification?
Polymorphism
Encapsulation
Abstraction
Inheritance
Use of Hierarchical classification avoids defining the properties of object explicitly at each level which have acquired their properties from higher levels.
Which of the following is a mechanism by which object acquires the properties of another object?
Encapsulation
Abstraction
Inheritance
Polymorphism
'Inheritance' is the mechanism provided by Object Oriented Language, which helps an object to acquire the properties of another object usually child object from parent object.
How will a class protect the code inside it?
Using Access specifiers
Abstraction
Use of Inheritance
All of the mentioned
Each method or variable in a class may be marked 'public' or 'private'. They are called Access Specifiers.
What is 'Basis of Encapsulation'?
object
class
method
all of the mentioned
Encapsulation is the mechanism that binds together code and data it manipulates, and keeps both safe from outside interface and misuse. Class, which contains data members and methods is used to implement Encapsulation.
Which of the these is the functionality of 'Encapsulation'?
Binds together code and data
Using single interface for general class of actions.
Reduce Complexity
All of the mentioned
'Encapsulation' acts as protective wrapper that prevents code and data from being accessed by other code defined outside the wrapper.
Which of the following mechanisms is/are provided by Object Oriented Language to implement Object Oriented Model?
Encapsulation
Inheritance
Polymorphism
All of the mentioned
No explanation is available for this question yet.
Which of the following is the functionality of 'Data Abstraction'?
Reduce Complexity
Binds together code and data
Parallelism
None of the mentioned
An essential element of Object Oriented Programming is 'Data Abstraction' which means hiding things. Complexity is managed through abstraction.