Class as the Basis of All Computation - ICSE Class 10 Computer Applications Notes, Diagrams and Solved Questions

Objects with state and behaviour, creating objects with new, references in memory, local, instance and class variables, access specifiers, the this keyword and classes as user-defined types.

In this chapter

  • Objects: state as data members, behaviour as methods
  • new, references and null, with a memory diagram you can step through
  • Local, instance and class (static) variables, and scope
  • private, default, protected and public, and data hiding
  • The this keyword and the bug it prevents
  • Classes as composite (user-defined) data types, and arrays of objects
  • Writing "define a class" programs the way the board expects