© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•17mo ago•
8 replies
maiker

Basic stuff: c#

so i am new to programming i only learnt the basics, so please don't laugh at this, but i don't quite understand using classes in other classes(not program.cs i mean other classes).
for example:
internal class WritingTool
{
private string name;
private string metrial;
private double price;
private bool isUsed;

}
internal class PencilCase
{
.....
}

how can i use the WritingTool class and its properties in PencilCase and how it works. and i don't mean parent child classes.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Basic C# question
C#CC# / help
5mo ago
✅ Learning C# basic things
C#CC# / help
4mo ago
✅ help with basic c#
C#CC# / help
2y ago