在学习Java的过程中,我逐渐掌握了面向对象编程(OOP)的概念和实践。面向对象编程将现实世界中的事物抽象为对象,对象之间通过消息传递进行交互,从而实现程序的设计和组织。

```java
public class Car {
String brand;
String color;
int year;

public Car(String brand, String color, int year) {
this.brand = brand;
this.color = color;
this.year = year;
}

public void displayInfo() {
System.out.println("品牌:" + brand);
System.out.println("颜色:" + color);
System.out.println("年份:" + year);
}
}

public class ObjectOrientedProgramming {
public static void main(String[] args) {
Car myCar = new Car("Toyota", "Red", 2022);
myCar.displayInfo();
}
}