I have a piece of code as following:
List<name.test> nameList
In List is name a class or object. Why would we use such an annotation?
Or for example:
method(name.test variable)
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityThis is probably because the clas Name
contains the definition of another inner class like this:
public class name{
public class test{
}
}
If so, you have to specify the parent class name before referencing the test
inner class.
So if you want to make a list of records of type name.test
, you have to use: List<name.test>
List<Name.Test> nameList
. So can better class names.