Purchase Solution

usage of class and object declaration

Not what you're looking for?

Ask Custom Question

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

Purchase this Solution

Solution Summary

The usage of class and object declaration is shown.

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 ...

Purchase this Solution

Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C# variables and classes

This quiz contains questions about C# classes and variables.