Explore BrainMass

Explore BrainMass

    usage of class and object declaration

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Write a definition of a Java class called "PersonName". The class should be defined so that the program below has the indicated output.

    © BrainMass Inc. brainmass.com February 24, 2021, 2:07 pm ad1c9bdddf

    Solution Preview

    Please save as "PersonNameProblem.java"

    public class PersonNameProblem
    public static void main(String[] args)
    PersonName pn = new PersonName("John","Albert");
    PersonName fpn = new ...

    Solution Summary

    The usage of class and object declaration is shown.