Given:
Which code fragment can be inserted to print: Peacock is eating?
BirdInt b = new::Bird("Peacock");
BirdInt b1 = Bird::new; Bird b = b1.getBird("Peacock");
BirdInt b = new Bird ("Peacock");
Bird b = Bird::new("Peacock");
B
B,tested
None is correct. B doesn't compile since there is no no-arg constructor.
B is correct