I need help on 6/13 oop


#1



public static void main(String[] args) {
class Dog {

int age;

public Dog(int dogsAge) {
age = dogsAge;
}}


#3

@gigajumper30403
Maybe read
== the Book ==
https://docs.oracle.com/javase/tutorial/java/concepts/class.html
https://docs.oracle.com/javase/tutorial/java/javaOO/classdecl.html
https://docs.oracle.com/javase/tutorial/java/javaOO/classes.html
OR
https://discuss.codecademy.com/t/dog-java/16432


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.