As classes provide reusable code, it makes sense that we can create multiple objects using the same class blueprint. Along with firstPerson, let’s create more objects of the Person class and set their field name.
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!