MCQs>IT & Programming>Actionscript 3>Given the following code snippet: public class Student { public function Student () { trace('Student variable created'); } public function hello () : String { return "Hello World"; } } ------------------------------------------------------- public function helloWorld () : String { var student1 : Student; return student1.hello (); } What will the function helloWorld() return?
Actionscript 3 MCQs
Given the following code snippet:
public class Student {
public function Student () {
trace("Student variable created");
}
public function hello () : String {
return "Hello World";
}
}
-------------------------------------------------------
public function helloWorld () : String {
var student1 : Student;
return student1.hello ();
}
What will the function helloWorld() return?
Answer
Correct Answer: Program execution ends with a Runtime error
Explanation:
Note: This Question is unanswered, help us to find answer for this one