1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vovangra [49]
3 years ago
5

What are the oop concept of java

Computers and Technology
2 answers:
qaws [65]3 years ago
7 0

OOP stands for Object Oriented Programming. In Java, we create classes to represent different things. For instance:

public class MyClass {

   public static void main(String args[]) {

     Car cr = new Car();

     cr.createCar("Ford", "Green", 2000);

     cr.printInfo();

   }

}

class Car{

   private String model, color;

   private int year;

   

   void createCar(String md, String cl, int yr){

       model = md;

       color = cl;

       year = yr;

   }

   void printInfo(){

       System.out.println("Car Info:");

       System.out.println("Model: "+model);

       System.out.println("Color: "+color);

       System.out.println("Year: "+year);

   }

}

We create a car object derived from the Car class with whatever properties we want and then we can display the properties of our car with the printInfo() method.

This is just one example of the OOP concept of Java.

mash [69]3 years ago
4 0

Answer: OOP concepts in Java are the main ideas behind Java’s Object Oriented Programming. They are abstraction, encapsulation, inheritance, and polymorphism. Grasping them is key to understanding how Java works. Basically, Java OOP concepts let us create working methods and variables, then re-use all or part of them without compromising security.

HOPE THIS HELPED IS NOT SORRY.

You might be interested in
While there are many types of sediments, those that make up sedimentary rocks must be transported by running water.
Yuri [45]
The correct answer would be true
8 0
4 years ago
Technology?
Andrej [43]

Answer:

D. Analyzing organizational operations to find opportunities for

improvement

Explanation:

It is option D because you are improving a device for a better future use, better technology.

Hope it helps!

6 0
2 years ago
HELP PLEASE NOW ASAP BRAINLIEST
charle [14.2K]
<span>Josie lives in an area where there are frequent power cuts. She should use a UPS (Uninterruptible Power Supply). It protects against damage to a computer's hard drive (data) in case of a sudden shutdown.

Hope this helps!</span>
7 0
4 years ago
Read 2 more answers
Does anyone know? If you do please answer.
Sidana [21]
Whats the question..
6 0
3 years ago
Tissues of the same kind make up _____________ .
muminat
C. Cells, because everything makes up of cells.
5 0
3 years ago
Read 2 more answers
Other questions:
  • What problem does chlorofluorocarbon (CFC) create?
    5·1 answer
  • A junior network administrator has used the wrong cable type to connect his/her computer to the administrative port on a router
    7·1 answer
  • Question 4 / 5
    11·1 answer
  • How does the government is i.t to run the country?
    9·1 answer
  • What is the process of designing green buildings called
    9·2 answers
  • Within a Microsoft Windows environment, who has access rights to the Encrypting File System (EFS) features and functions?
    7·1 answer
  • How can a System Administrator quickly determine which user profiles, page layouts, and record types include certain fields? Uni
    14·1 answer
  • Freeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee points
    14·2 answers
  • Where does the list of incoming mail appear in gmail
    13·2 answers
  • The following shared data structures must be declared as global variables such that they are shared by all threads
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!