NET - What are User-defined types in .NET? How to create user-defined in C#.NET?

What are User-defined types in .NET? How to create user-defined in C#.NET?

Public class Student
{
       int age;
       string name;
       public Student(int _age, string _name)
       {
              age=_age;
              name=_name;
       }
       public int Age
       {
              get{return age;}
              set{age=value;}
       }
       public String Name
       {
              get{return name;}
              set{name=value;}
       }
}

Student is a user defined type which stores age and name of a student.
NET - What are the Enumerations? How to create Enumerations in C#.NET?
What are the Enumerations? How to create Enumerations in C#.NET? - An enumeration is a special type of collection in the .NET Framework......
NET - Define Stream class in .NET. Explain with an example using C#.NET?
Define Stream class in .NET. Explain with an example using C#.NET? - The Stream class gives a view of various types of input and output. Streams involve three fundamental operations:......
NET - Explain common Stream types in Net.
Explain common Stream types in Net - FileStream, MemoryStream, StreamReader, StreamWriter.....
Post your comment