[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 819
  • Last Modified:

What does keyword 'classification' mean?

Hi,

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

public class Masterpiece extends GalleryPainting
{

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

} // class Masterpiece

Thanks
0
blaze_wk
Asked:
blaze_wk
1 Solution
 
petmagdyCommented:
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


Cheers!
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now