The result of calling function E is used to end the call to another function on the same line as function E.
Example: The Main function from the data life cycle of the controllerC object of the object from the EvaluateStudent function (located in the StudentC area ) to use it as a parameter to call another function also located in the same StudentC area . Importantly, calls must be made from outside the scope of StudentC. In our case, calls are made with ControllerC.
public StudentC { public function int EvaluateStudent(object student) { } public function int IsTopStudents(int score, int acceptanceLevel) { return(score > acceptanceLevel); } } public ControllerC{ Public function Main() { IsTopStudent(EvaluateStudent(student), 8); } }
source share