C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
1
Reply
How many types of Wrapper classes in .NET?
ankit
13y
1.7k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
A wrapper class is "encapsulate" the resource. and restrict the interface between outside the world and encapsulate the object.public class Wrapper {private int x = 10;private int y = 20;public Wrapper(){//// TODO: Add constructor logic here//}public int add(int x, int y){Wrapper.inside obj = new inside();//core functionality of this method is written in the wrapped class.int sum = obj.add(x, y);return sum;}/// /// this class is wrapped by the wrapper class. /// we can access only inside this class./// outside the class, we cant access this class./// private class inside{ public int add(int x, int y){return x + y;} } }
Ravindra Chaudhary
10y
0
What data types are used in Select Case statement?
When we need to do Explicit Casting?
Message