class Noodle { double lengthInCentimeters; String shape; String texture = "brittle"; public void cook() { this.texture = "cooked"; } public static void main(String[] args) { Spaghetti spaghettiPomodoro = new Spaghetti(); System.out.println(spaghettiPomodoro.texture); } } //next file class Spaghetti extends Noodle{ }