Classes: Instance Fields
Wed Sep 21 2022 02:44:44 GMT+0000 (Coordinated Universal Time)
Saved by
@cruz
#javascript
public class Store {
// declare instance fields here!
String productType;
// constructor method
public Store() {
System.out.println("I am inside the constructor method.");
}
// main method
public static void main(String[] args) {
System.out.println("This code is inside the main method.");
Store lemonadeStand = new Store();
System.out.println(lemonadeStand);
}
}
content_copyCOPY
Comments