Topic 3
Topic 3
CBSC4103
TOPIC 3 : PROGRAMMING CONCEPTS
DR. MARIAYEE DORAISAMY
Abstraction
Process abstraction is
implemented by using
subprograms.
Example Example
• Int, Char, String, • Declare variable by own
Float and etc. • Manipulating objects in
our coding
DECOMPOSING
A bigger problem decompose into smaller problems
• The process of decomposing a larger problem
into smaller problems or sub problems is
called as Modularization.
It is a subprogram – perform
task Example
func string concatenate_two_strings()
{
var string first_name = “Amirul “
It is invoked by expression var string last_name = “Mohamad"
var string full_name = first_name + " " + last_name
return full_name
}
It has two purpose which are :
• It name the action
• It functions according to the action
that needed by the variable
identifier
It contains header (type of result, identifier of the function and list of
parameters), and declarative part and body { }
MODULARIZATION IN JAVA