面向对象
什么是面向对象


回顾方法的定义
package oop;
import java.io.IOException;
public class Demo01 {
public static void main(String[] args) {
}
//
public String sayHello() {
return "hello, world!";
}
public void sayHi() {
return;
}
public int max(int a, int b) {
return a > b ? a : b;//三元运算符
}
public void readFile(String fileName) throws IOException {
}
}
打卡!打卡!打卡!打卡!打卡!
狂神链接




















