Computer Science, asked by Anonymous, 1 year ago

What is wrapper class ?

Answers

Answered by Anonymous
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 Anonymous
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 :)^_^
Anonymous: thank you soo much ^__^
Anonymous: welcome
Similar questions