Bissoy.com
Login
Doctors
Medicines
MCQs
Q&A
Ask
Merit Test
Questions
Courses
Which one of the following can be used to instantiate an object in PHP assuming class name to be Foo?
$obj = new $foo;
$obj = new foo;
$obj = new foo ();
obj = new foo ();
LohaHridoy
0
Edit
5
views
2025-01-04 04:42
1
Answers
AhmedNazir
Answer: Option 3
Let'
0
Thanks
5
views
Answered
2022-09-01 13:21
Report
Edit
Call
Related Questions
What will be the output interface A{ public void method(); } class One{ public void method(){ System.out.println("Class One method"); } } class Two extends One implements A{ public void method(){ System.out.println("Class Two method"); } } public class Test extends Two{ public static void main(String[] args){ A a = new Two(); a.method(); } }?
1 Answers
13
Views
What will be the output of the following code <php $foo = 'Bob'; $bar = &$foo; $bar = "My name is $bar"; echo $bar; echo $foo; >?
1 Answers
5
Views
What will be the output of the following PHP code <php <php echo "Hello world"; > >?
1 Answers
5
Views
What will be the output of the following PHP code <php $one = "one"; $two = "one"; print($one == $two); >?
1 Answers
4
Views
What will be the output of the following PHP code <php define("GREETING", "PHP is a scripting language"); echo $GREETING; >?
1 Answers
5
Views
What will be the output of the following PHP code <php define("__LINE__", "PHP is a scripting language"); echo __LINE__; >?
1 Answers
4
Views
What will be the output of the following PHP code <php echo stripos("I love php, I love php too!","PHP"); >?
1 Answers
4
Views
Which keyword allows class members (methods and properties) to be used without needing to instantiate a new instance of the class?
1 Answers
5
Views
Which class accepts a class name or an object reference and returns an array of interface name?
1 Answers
5
Views
. . . . . . is a class which can only be instantiated once. You can effectively only have one object per . . . . . class in an application.?
1 Answers
4
Views
কোরআন
হাদিস
চাকুরি প্রস্তুতি
বিশ্ববিদ্যালয় ভর্তি
মেডিকেল SBA
12
এইচএসসি
10
এসএসসি
8
জেএসসি
এক্সাম দিয়ে মেধা যাচাই করুন
Job Preparation (1125)
Admission (754)
এসএসসি (10)
এইচএসসি (5)
Login Required
You need to log in to continue.
Login
Cancel
Download Required
You need to download the app to make a call.
Download
Cancel