Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi,

What is Custom Class?
Where do we use the Custom class?
Posted
Updated 29-Nov-10 21:46pm
v2
Comments
Dalek Dave 30-Nov-10 3:46am    
Minor Edit for Grammar.

A custom class is one that is written by a programmer for a specific purpose opposed to all the pre-existing classes that come with the .NET framework.

So when I do something like this:

public class MyClass
{
    int test;
    String whatever;

    public MyClass(int i, String s)
    {
        this.test = i;
        this.whatever = s;
    }
}


I've created a custom class.

Cheers

Manfred
 
Share this answer
 
Comments
Dalek Dave 30-Nov-10 3:47am    
Straightforward answer to a basic question.
Any class you produce is a Custom class or Custom Type rather. But in certain cases the way of declaring your class might change.


Check
http://msdn.microsoft.com/en-us/library/ms753379.aspx[^]

:rose:
 
Share this answer
 
Comments
Dalek Dave 30-Nov-10 3:47am    
Good link.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900