Classes and Objects: Rhea Mae L. Perito, Msis Subject Instructor

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 6

Classes and Objects

RHEA MAE L. PERITO, MSIS


SUBJECT INSTRUCTOR
Classes
is a blueprint from which individual objects are
created.
are types, but are far more powerful than the
simple types like int and float.
Not only can you customize your data storage
using classes, but you can also add methods to
classes.
Encapsulation
the process of wrapping related data and
methods into a class (and so preventing them
from cluttering up the rest of the program) to
create a single entity.
Access Modifiers

Public
Private
Protected
Class statement

[modifiers] class identifier { class-body } [;]

You might also like