PHP - Classes and Objects
Which of these is the correct way to create an object of class Book?
Which of these is the correct way to create an object of class Book?
new ClassName();.$book = new Book(); follows the correct syntax.new ClassName() [OK]new ClassName() to instantiate [OK]new keyword15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions