16
Reply

Am i correct in what i think ? (list of methods and return types)

John  Burns

John Burns

Dec 22 2010 3:56 AM
3.9k

just really to test my knowledge on what i have learned so far.
is this list correct and its meaning?
 
1) Public int Test    //a public function with an integer return type.
{
}
 
2) Public int Test;    // a memebr variable that could be used in a class.
3) int Test;             // a variable of integer data type.
4) Public static Test     // a block(sub) that will not return a vlaue**
{
}
 
5) Public static int Test       // a function that cannot be called with an instance of integer return type
{
}
 
6) Public void Test          // a a block (sub) that will not return a vlaue but will excecute some code
{
}
 
 
//one thing im confused at is number 4 .... w=does this evwen exist .. should it be void as it returns no value?
 
thanks

Answers (16)