State the purpose of wrapper class.
Answers
Answered by
0
Hey Mate,
This might help you
Here's your answer:-
Answer:
As the name says, wrapper class wraps or encloses a data type and give it an object appearance. Wherever the data type is required as an object, this object can be used. Wrapper classes includes methods to unwrap the object give back the data type.
Explanation:
It can be compared with a chocolate. The manufacturer wraps the chocolate with some foil or paper to prevent from the pollution . the user takes the chocolate , remove the wrapper and throw it and then eat the chocolate .
Hope this might help you.
Please mark as the brainliest answer.
Follow me..to get such answers...
Similar questions
Social Sciences,
6 months ago
Math,
6 months ago
Chemistry,
6 months ago
Computer Science,
1 year ago
English,
1 year ago