, And declear vriable as object from (dog class) and let Puppy() constractor as it . delecration is ok . but Puppy it isn't so that is mean that Puppy at main is class and isn't constractor . Sorry for disturbance but now I need to understand : 1-How is it class and he use it as constractor ? 2- It is class so What does it do ?
https://docs.oracle.com/javase/tutorial/java/javaOO/constructors.html << should read this to know more about constructors..
Follow this course https://www.edx.org/course/software-construction-data-abstraction-ubcx-softconst1x It will at least get your basics right hmm
Обсуждают сегодня