Code: Select all
public class1 function()
{
Var response=function2();
//I want to return first object of class 2 along with parent object
of class1 without loosing the parent and first object data of class2.
currently I am getting the error saying can't convert list to single object.
Return class1
}
Public class1 function2()
{
Return class1
}