Computer Applications
A class encapsulates …………… .
- data
- methods
- functionality
- all the above
Encapsulation & Inheritance in Java
32 Likes
Answer
all the above
Reason — A class encapsulates characteristics, state (data) and behaviour (methods and functionality) of an entity in a single unit
Answered By
16 Likes
Related Questions
Through which access specifier, a class makes its element visible to all ?
- public
- private
- protected
- friendly
If a local variable is having the same name as that of a global class element, then it
- hides the global variable
- gets hidden by global variable
- produces an error
- none of the above
Java resolves duplicate variable name to ……………. .
- global variable
- local variable
- most local scope variable
- all the above
A member method that returns the value of a private data member is called …………… .
- setter
- getter
- manager
- accessor