COMPUTER SCIENCE AND ENGINEERING
SOFTWARE ENGINEERING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Attributes
|
|
operation
|
|
set of objects
|
|
all of the above mentioned
|
Detailed explanation-1: -A Class consists of which of these abstractions? Explanation: A class is an abstraction of objects, operations and attributes.
Detailed explanation-2: -8. A Class consists of which of these abstractions? a) Set of the objects b) Operations c) Attributes d) All of the mentioned e) b, c Answer: d Explanation: A class is a abstraction of objects, operations and attributes.
Detailed explanation-3: -Answer-A) Abstraction can be implemented using encapsulation.
Detailed explanation-4: -Explanation: Abstraction is hiding the complex code. For example, we directly use cout object in C++ but we don’t know how is it actually implemented. Encapsulation is data binding, as in, we try to combine a similar type of data and functions together.