Introduction to Object Oriented Programming Concepts
ICSE Class 9 · Computer Applications · Chapter 1
What this chapter covers
- Procedure oriented and object oriented programming
- Data abstraction
- Encapsulation
- Inheritance
- Polymorphism
- Open source software and OpenJDK
- IDEs, Java versions and system requirements
- Java compilation process
- Features of Java
- Real-time applications of Java
Key points
- A program is a set of instructions that tells a computer how to perform a task.
- Procedure oriented programming divides a program into functions working on shared data; object oriented programming builds a program from objects that combine data and methods.
- An object has a state (characteristics) and a behaviour (actions).
- The four principles of OOP are data abstraction, encapsulation, inheritance and polymorphism.
- Data abstraction shows the essential features and hides the background details.
- Encapsulation binds data and methods into one unit and protects the data (data hiding).
- Inheritance lets a derived class acquire the features of a base class, which allows reuse of code.
- Polymorphism lets one message or method name take many forms.
- Open source software is free to use, study, change and share; OpenJDK is the open source Java development kit.
- An IDE such as BlueJ, DrJava, NetBeans or MyEclipse brings editing, compiling, running and debugging together.
- Java has been released in versions; LTS versions such as Java 17, 21 and 25 receive updates for several years.
- A Java applet runs inside a web browser; a Java application runs on its own and begins from `main`.
- Source code (`.java`) is compiled by `javac` into byte code (`.class`), which the JVM converts into object code for the processor.
- Java's main features are simple, object oriented, platform independent, robust and secured, along with portability, multithreading and a rich library.
- Java is used in mobile, desktop, web, gaming, robotic and education applications, and in chatbots and virtual assistants.
Questions answered
Define object oriented programming.
State two differences between procedure oriented programming and object oriented programming.
Define data abstraction and give one real-life example.
What is encapsulation? How does it help to protect data?
Name the principle of OOP that allows code to be reused, and explain it with an example.
What is polymorphism? Give a real-life example.
Why do schools often prefer open source software? Name the open source Java development kit suggested by the syllabus.
What is an IDE? Name any two IDEs used for Java.
Past board exam questions
ICSE 2027 sample paper · 1 mark
Megha knows how to bake cookies in the microwave oven, but she does not know about the internal, unseen components of the microwave oven. Identify the OOPs feature depicted in this scenario.
- Abstraction
- Polymorphism
- Inheritance
- Modularity
Show answer
ICSE 2027 sample paper · 5 marks
Answer the following questions: (a) Name the type of error which occurs while compiling a program. (b) Which Java package is imported by default? (c) Define an object in Java. (d) What is the full form of JDK? (e) What is the Math method to convert – 4 to 4?
Show answer
ICSE 2027 sample paper · 2 marks
(a) Raj climbs 5 floors by climbing 14 steps to reach each floor. Name the programming concept that can be used to depict the same. (b) Identify the Object-Oriented Programming concept implemented in the scene below: A mother says “Son, I am base class” and her son replies “Mom, I am derived class”.