What does keyword 'classification'  mean?

Posted on 2005-05-14
Last Modified: 2008-01-09

What does the keyword 'classification' mean? For example, the statement below:-

public class Masterpiece extends GalleryPainting

  public Masterpiece ()      { classification = "Masterpiece"; }

} // class Masterpiece

Question by:blaze_wk
    1 Comment
    LVL 13

    Accepted Solution

    Hi blaze_wk,

    'classification' is not a java keyword, obviously it is a member field of type String in the base class GalleryPainting, and the sub class Masterpiece initalize it to the value "Masterpiece", obvoiusly it idetifies the type of the Class based on GalleryPainting


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now