What is wrapper class ?
Answers
Answered by
10
a wrapper class is a class that encapsulates types, so that those types can be used to create object instances and methods in another class that need those types.
Answered by
34
A wrapper class is a class that wraps or has an object that wraps . It wraps data and functions under a single unit and it shows encapsulation which is an important feature of OOP.
Example :
Character .
Integer .
Extra info :
Encapsulation is a way of wrapping up data and functions.
A wrapper class can be converted to other classes .
Anonymous:
nice answer :)^_^
Similar questions
Math,
8 months ago
English,
8 months ago
Math,
8 months ago
English,
1 year ago
Physics,
1 year ago
Computer Science,
1 year ago
World Languages,
1 year ago