Chapter 5

Classes and Objects

OBJECTIVES
  • To explain object-oriented paradigm with encapsulation, information hiding, aggregation, inheritance and polymorphism features
  • To cultivate object-oriented thinking to design applications
  • To create classes with data members and member functions
  • To illustrate classes with Laptop application
  • To write different access types for classes, data members and member functions
  • To implement aggregation with OOCollege application
  • To explain static variables and static methods
  • To implement array of objects for Student application
  • To implement methods with objects as arguments for BookStore application
  • To understand the scope with this reference
5.1 INTRODUCTION

In chapters 14, the readers were exposed to Java ...

Get JAVA Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.