CC103 Lesson
CC103 Lesson
GRAMMING 02
COURSE OUTCOME
01 analyze the identified problem specification to come up with
possible and best solution;
STATE
BEHAVIOR
What is Object? (cont.)
Attribute/Variable Method
Attributes
Constructor
Function
It is called when it
does not have any
parameter. It has a specific
numbers of parame-
ters.
• With Parameters • Without Parameters
It will be invoked at the time
of object creation.
you are not creating any constructor so
compiler provides you a default construc-
tor. Here 0 and null values are provided
by default constructor.
Activity 03: ½ sheet of paper
Complete the codes to have the output given.
Answer:
ASSIGNMENT: ½ sheet of paper
Assignment.
Create a program that will use encapsulation.
Package
Compute Files
Types of Storage Devices:
Volatile – it is referred to temporary memory.
Non-Volatile – a memory which data or in-
formation remains keep within memory albeit
power is completed.
A text file consists of data that can be read in a text
editor.
The Path and File Classes