Skip to main content

Abstract

With a class, we are creating a new datatype and objects are used to hold the data (fields) and methods. Object behavior can be exposed through these methods.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Vaskaran Sarcar

About this chapter

Cite this chapter

Sarcar, V. (2016). Class. In: Interactive Object Oriented Programming in Java. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2544-8_2

Download citation

Publish with us

Policies and ethics