object-oriented programming in java .pptx

238r1a05cx 6 views 20 slides Sep 16, 2025
Slide 1
Slide 1 of 20
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20

About This Presentation

object-oriented programming in java in which they are inheritence ,encapsulation polymerism etc


Slide Content

Tree Infographics Here is where this template begins Presented by :G Haniksha 238R1A05CX

Tree Infographics Jupiter Mars Saturn Venus Despite being red, Mars is actually a cold place. It’s full of iron oxide dust Saturn is a gas giant, composed mostly of hydrogen and helium Venus has a beautiful name and is the second planet from the Sun Jupiter is a gas giant and the biggest planet in the Solar System

Tree Infographics It’s the smallest planet in the Solar System It’s the biggest planet in the Solar System Venus has a very poisonous atmosphere Earth is the planet where we all live on It’s composed mostly of hydrogen and helium Neptune is the farthest planet from the Sun It’s a cold place. It’s full of iron oxide dust Ceres is located in the main asteroid belt A B A B C D E F C D G E F H G H

Tree Infographics Despite being red, Mars is a cold place Venus has a very poisonous atmosphere Jupiter is the biggest planet of them all Saturn is the biggest planet of them all Neptune is the farthest planet from the Sun Mars Venus Jupiter Saturn Neptune 10% 30% 50% 70% 90%

Tree Infographics It’s the smallest planet in the Solar System It’s the biggest planet in the Solar System Venus has a very poisonous atmosphere Earth is the planet where we all live on It’s composed mostly of hydrogen and helium Neptune is the farthest planet from the Sun It’s a cold place. It’s full of iron oxide dust Ceres is located in the main asteroid belt 1 2 3 4 5 6 7 9 The Moon is a satellite that orbits Earth The Sun is at the center of the Solar System 5 10 1 6 2 3 4 5 8 7 10 9

Jupiter is a gas giant and actually also the biggest planet in the Solar System It has a beautiful name and is the second planet from the Sun in the Solar System Tree Infographics A Saturn is a gas giant in the Solar System, composed mostly of hydrogen and helium B C

It’s the smallest planet in the Solar System It’s the biggest planet in the Solar System Venus is a planet with a beautiful name Earth is the planet where we all live on It’s composed of hydrogen and helium Neptune is very far away from Earth It’s a cold place. It’s full of iron oxide dust Ceres is located in the main asteroid belt Tree Infographics

Tree Infographics Despite being red, Mars is a cold place Venus has a very poisonous atmosphere Jupiter is the biggest planet of them all Saturn is the biggest planet of them all Neptune is the farthest planet from the Sun Mars Venus Jupiter Saturn Neptune

Tree Infographics Mars is actually a cold place. It’s a planet full of iron oxide dust Mars It’s a gas giant and also the biggest planet in Solar System Jupiter It has a beautiful name, but it’s terribly hot, more than Mercury Venus A C B

Tree Infographics Mercury It’s the smallest planet in the Solar System Saturn It’s composed mostly of hydrogen and helium Neptune Mars It’s the farthest planet from the Sun It’s a cold place. It’s full of iron oxide dust Jupiter It’s the biggest planet in the Solar System

Tree Infographics It’s the closest planet to the Sun Venus has a poisonous atmosphere It’s a gas giant in the Solar System It’s composed of hydrogen and helium It’s now considered a dwarf planet Mars is full of iron oxide dust Earth is the planet where we live on Mercury is the smallest planet here

Tree Infographics 1 5 2 4 3 6 It’s the smallest planet in the Solar System Venus has a very poisonous atmosphere Jupiter is the biggest planet of them all Saturn is the biggest planet of them all Neptune is the farthest planet from the Sun 1 2 5 3 4 Mercury Venus Jupiter Saturn Neptune Despite being red, Mars is a cold place 6 Mars

Tree Infographics Mercury is the closest planet to the Sun and the smallest one in the entire Solar System Venus is the second planet from the Sun. It has a beautiful name, but also high temperatures Saturn, the ringed planet in the Solar System, is composed mostly of hydrogen and helium Mercury Venus Saturn

Code Examples In the context of Java, OOP principles are applied through classes and objects. Classes define blueprints for objects, specifying their attributes and methods. Objects are instances of classes, created from the blueprint, and each object has its own unique set of data. public class Main { public static void main(String[] args ) { Dog myDog = new Dog("Buddy", 3); // Access and modify the object's attributes System.out.println ("Dog's name: " + myDog.getName ()); myDog.setName ("Max"); System.out.println ("Dog's new name: " + myDog.getName ()); // Call the object's methods myDog.bark (); myDog . eat(); } } class Dog { private String name; private int age;

public Dog(String name, int age){ this.name = name; this.age = age; } public String getName () { return name; } public void setName (String name) { this.name = name; } public int getAge (){ return age; } public void setAge (int age){ this.age = age; } public void bark() { System.out.println ("Woof!"); } public void eat() { System.out.println ("Dog is eating"); } }

A B C E D F H G Tree Infographics It’s the smallest planet in the Solar System It’s the biggest planet in the Solar System Venus has a very poisonous atmosphere Earth is the planet where we all live on It’s composed mostly of hydrogen and helium Neptune is the farthest planet from the Sun It’s a cold place. It’s full of iron oxide dust Ceres is located in the main asteroid belt A B C D E F G H

Tree Infographics 1 2 3 50% 15% 35% Venus, the second planet from the Sun, has a beautiful name, but also extremely high temperatures and a poisonous atmosphere Despite being red, Mars is actually a cold place. It is full of iron oxide dust, giving the planet its characteristic reddish cast Mercury is the closest planet to the Sun and the smallest one in the Solar System. It was named after the Roman messenger god

THANK YOU