C#C
C#15mo ago
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.
Was this page helpful?