Ayuda practica 42.2 java encapsulacion
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner read = new Scanner(System.in); int totalIncome = read.nextInt(); int taxPercent = read.nextInt(); //creando un objeto de ingreso Income income = new Income(); income.totalIncome = totalIncome; income.taxPercent = taxPercent; income.CalculateNetRevenue(); System.out.println("Net revenue: " + income.getNetRevenue()); } } class Income{ public int totalIncome; public int taxPercent; //los ingresos netos son privados private int netRevenue; //completa el método setter public void CalculateNetRevenue(){ } //completa el método getter public int getNetRevenue(){ } }