I have been learning java for a month, and I have learned the basics. I used to be a more playful person. I used to play games in addition
to . After learning java, I insisted on writing code every day. I felt pretty good at first, because I could basically complete the daily
exercises , but when I used classes, inheritance, and interfaces, I couldn't understand it.
There are two questions that I don't understand
all the time. 1. Class person{} doesn't this class contain all the people, why should I use a specific class to inherit it,
isn't it the same with direct instantiation?
2. Interface, the interface is all abstract methods, and the implementation has to be implemented in a concrete class. Does the interface feel a bit
redundant ?
A little doubt about learning java for a month
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326710765&siteId=291194637
Recommended
Ranking