Lesson 1. Object-Oriented Programming Concepts
Lesson 1. Object-Oriented Programming Concepts
Lesson 1. Object-Oriented Programming Concepts
IT ELEC 2
Object-Oriented
Programming
INSTRUCTOR: KRYSTEL JANE L AJIAS
ASSOCIATE IN COMPUTER TECHNOLOGY
BS INFORMATION TECHNOLOGY
DIPLOMA IN PROFESSIONAL EDUCATION
MA EDUCATION (CAR)
MS INFORMATION TECHNOLOGY (ON-GOING)
Course Description
This three (3) units course introduces the concepts of object-
oriented programming to students using Java with a
background in the procedural paradigm.
The course begins with a review of basic structures and data
types in Java. Moreover, the course also introduces students the
object-oriented programming paradigm, focusing on the definition
and use of classes along with the fundamentals of object-
oriented design.
Course General Objectives:
Encapsulation
Abstraction
Inheritance
Polymorphism
How To Complete This Course:
All students are expected to maintain and promote the
highest standards of personal honesty and professional
integrity. Each student has to attend lecture and laboratory
sessions within 90 hours and shall comply with the
requirements of the course before the end of the semester.
Key Topics:
• Software developers create software with the help of powerful tools called
programming languages.
Assembly language
- Programming in machine language is a tedious process. assembly language was created in the
early days of computing as an alternative to machine languages. Assembly language uses a
short descriptive word, known as a mnemonic, to represent each of the machine-language
instructions.
For example:
Requirement
Model development Code Generation
maturation phase
Pascal Case
Ex.
NumberOfDonuts = 50
5. Floating Point
• float – (3.4e-038 to 3.4e + 038).
• double - (1-7e – 308 to 1.7e + 038)
Identifiers – refers to the name
of the variable that the
programmer used. It is used to
Read and Write the variable.
Rules of Identifiers
All Java variables must be identified with unique names.
Syntax:
Datatype identifier;
Datatype identifier = value;
Concatenation
Concatenation – the process of
joining Strings together with
the plus operator.
Concatenation
‘a’ + “b”
5+ ‘3’
Java Built-in Packages
Java API has many pre-written classes to help the programmer manage input, database and etc.
Package name
Loops
We have three types of Loops in C++:
While Loop
Do While Loop
For Loop
Sample Java Code
Object: Object:
Object:D
HATCHBACK SEDAN
og
Understanding CLASS & OBJECT
In soccer, players are selected from various places depending on the mastery of skills. When I
say that Ronaldo is a footballer, so you assume that Ronaldo has these basic abilities as well as
skills specific to soccer even if Ronaldo is unknown to you.
CLASS:
FOOTBALLER
CLASS:
FOOTBALLER
Object: Object:
RONALDO BECKHAM
Object:
RONALDO
Output:
Sample Output: