面试的重要问题 [英] Important question for interview
本文介绍了面试的重要问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
抽象类和接口有什么区别?
什么是抽象类?
什么是抽象方法?
什么是接口?
what is the difference between abstract class and interface ?
what is abstract class ?
what is abstract method ?
what is interface ?
推荐答案
如果你不知道这一点,你就不配得到这份工作!这是非常基本的东西,我希望任何用C#做过任何事情的人都知道。
如果你自己无法回答这个问题,那么你将失败当他们遇到更难的时候,接下来的采访。
读一本书,学习基础知识!
If you don't know this, you don't deserve to get the job! This is very basic stuff, that I would expect anyone who has done anything with C# to know.
If you can't answer this yourself, then you will fail the rest of the interview when they get to the harder stiff.
Read a book, and learn the basics!
抽象类和接口有什么区别?
抽象类有一个体(成员元素),而接口没有体。
什么是抽象类?
声明类摘要意味着我们不能自己实例化,只是属于子类。
什么是抽象方法?
声明方法摘要意味着它的定义将在子类中提供。 br />
什么是接口?
接口
Java中的接口类似于类,但接口的主体可以是只包括抽象方法和最终字段(常量)。
这是一篇关于抽象类和接口的好文章。
抽象类和接口的重要性
what is the difference between abstract class and interface ?
Abstract Class has a body ( member elements ) whereas interfaces don't have a body.
what is abstract class ?
Declaring a Class Abstract means that we can't instantiate on its own and is only meant to be sub-classed.
what is abstract method ?
Declaring a method abstract means that It's definition will be provided in the sub-class.
what is interface ?
Interface
An interface in Java is similar to a class, but the body of an interface can include only abstract methods and final fields (constants).
Here is a good article on abstract classes and interfaces.
Importance of Abstract Classes and Interfaces
这篇关于面试的重要问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文