JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
public class Program
{
public static void main(String[] args) {
System.out.println("ENCAPSULATION:");
System.out.println("DEFINATION:Encapsulation in java is a process of wrapping code and data together into a single unit. also Encapsulation means data hiding in-order to make it safe from any modification. ");
System.out.println("EXAMPLE:Television is loaded with different functionalies that we don't know because they are completely hidden.");
System.out.println("2-As a driver you know how to start the car by pressing the start button and internal details of the starting operations are hidden from you.");
System.out.println();
System.out.println("POLYMORPHISM:");
System.out.println("DEFINATION:The process of representing one form in multiple forms is known as Polymorphism.");
System.out.println("EXAMPLE:Suppose if you are in class room that time you behave like a student, when you are in market at that time you behave like a customer, when you at your home at that time you behave like a son or daughter, Here one person present in different-different behaviors.");
System.out.println();
System.out.println("INHERITANCE:");
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run