Object Oriented Programming: Unleashed
Object Oriented Programming: easy ICSE Class 9 Computer Science notes with Java examples for students.
Object oriented programming is very important concept.
Watch Java videos

https://www.youtube.com/watch?v=Rf6mkmhEW70
JAVA tutorials
What is object-oriented programming?
Object-oriented programming (OOP) organises a program around objects. Each object combines data, called data members or state, with the actions that work on that data, called methods or behaviour. Java, the language used for ICSE Computer Applications, is an object-oriented language.
Class and object
- A class is a blueprint or template. It describes what data and methods its objects will have.
- An object is an instance of a class: a real thing created from the blueprint, which occupies memory.
class Student { // class = blueprint
String name; // data members (state)
int marks;
void display() { // method (behaviour)
System.out.println(name + " scored " + marks);
}
}
// creating an object of the class
Student s1 = new Student();
s1.name = "Aarav";
s1.marks = 92;
s1.display(); // Aarav scored 92The four principles of OOP
- Encapsulation: wrapping data and methods into a single unit (the class) and hiding the data from outside access. Example: declaring data members
privateand providing methods to access them. - Abstraction: showing only the essential features and hiding the details. Example: you call
Math.sqrt(25)without knowing how the square root is calculated. - Inheritance: one class acquires the properties of another class, which allows code to be reused. Example:
class Car extends Vehicle. - Polymorphism: one name with many forms. Example: method overloading, where
area(int)andarea(int, int)are different methods with the same name.
Why OOP matters for ICSE
Every Section B program in the ICSE Computer Applications paper is written as a class with data members and methods. A clear understanding of class, object and the four principles is also asked directly as 2-mark definitions in Section A.
Quick check: Which principle hides the implementation and shows only essential features? Abstraction. Which one binds data and methods together? Encapsulation.
Related Posts
Continue learning with these related articles

Logic Gates for ISC Class 11: Truth Tables, Universal Gates, Half and Full Adder
ISC Class 11 Computer Science notes on logic gates: AND, OR, NOT, NAND, NOR, XOR and XNOR with truth tables, why NAND and NOR are universal gates, and half adder and full adder circuits with their Boolean expressions.
Decimal to Binary Conversion in Java: 3 Programs with Examples
How to convert a decimal number to binary on paper and in Java: three programs (String, place value and Integer.toBinaryString), binary to decimal, a dry run and common mistakes.
Sum of First n Natural Numbers in Java (Loop and Formula)
Find the sum of the first n natural numbers in Java with a for loop, a while loop and the formula n(n + 1)/2, with a dry run and the sums of even numbers, odd numbers, squares and cubes.