You need to sign in to do that
Don't have an account?
divakar ddd
supose we wouldtake one method in that we knw how can we take parameters and identify their datatypes and add to class etc .but only method have been given and automatically how many parameters in that method and how many datatypes how
public Map<ID,List<string>> Inputmethod(string input1,Map<ID,List<string>>,input2,Map<ID,Map<ID,set<integer>>>)
{
List<string>AccList =input2.values();
List<Account>AccList=New List<Account>();
for(string AccName=AccList){
Account a=New Account();
a.Name=AccName;
AccountList.add(a);
}
insert AccList;
return Map<ID,list<string>>;
}
the above code seems to be we knw data types in method and we knw parameters so automatically we can add and assign to object ."THAT PROCESS AUTOMATICALLY I MEAN TAKE PARAMETERS AND DATATYPES AND ASSIGN TO OBJECT LIKE A ROBOAT.any code is there
{
List<string>AccList =input2.values();
List<Account>AccList=New List<Account>();
for(string AccName=AccList){
Account a=New Account();
a.Name=AccName;
AccountList.add(a);
}
insert AccList;
return Map<ID,list<string>>;
}
the above code seems to be we knw data types in method and we knw parameters so automatically we can add and assign to object ."THAT PROCESS AUTOMATICALLY I MEAN TAKE PARAMETERS AND DATATYPES AND ASSIGN TO OBJECT LIKE A ROBOAT.any code is there
1)Identify how many parameters are ther in the method?
2)Identify what are different datatypes of those inputparametes?