抽象类不能创建对象,一般用它来引用子类对象。实例:Person p;p=new Employee();
Powered by: 博客园 Copyright © 2024 lidaye2396 Powered by .NET 8.0 on Kubernetes