Question: C++ print(Person(Bob, 42)); // prints Bob, 42 #Create a class Person and call the function print to print about object. C++ only
C++
print(Person("Bob", 42)); // prints "Bob, 42"
#Create a class Person and call the function print to print about object.
C++ only
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
