| |

VerySource

 Forgot password?
 Register
Search
Author: hewei0611

Please take a look at the beginner's question, thank you for answering, I will remember

[Copy link]

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-6 21:15:02
| Show all posts
What you inherit is a class, what is the matter of the interface, it does not matter if it is implemented
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-9 13:00:01
| Show all posts
If the class inherits the interface, all methods of the interface must be implemented. If the interface methods can be fully implemented, the abstract class can be used to inherit the interface.
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Japan

Post time: 2020-8-3 11:30:02
| Show all posts
to host:
Can you use clone as an example to write an example of compiling errors without implementing Cloneable but not being able to clone?
I studied for a long time, but didn't write it.
Unless the client program uses interface programming, and you do not implement this interface, there will be no way to compile it.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list