Pergunta de entrevista da empresa Tribro

1.difference between abstract class,interface

Respostas da entrevista

Sigiloso

23 de mar. de 2016

abstract class is contain abstract methods as well as concreat methods where as interface contain only abstract methods

Sigiloso

23 de jun. de 2016

Interface is a service recuirments specification which describes the services offered. And it is 100% abstract class. If we don't want to allow a program to create an object for a class, then declare that class as abstract class. Methods in abstract class are may or may not abstract methods.

Sigiloso

23 de jun. de 2016

Interface is a service recuirments specification which describes the services offered. And it is 100% abstract class. If we don't want to allow a program to create an object for a class, then declare that class as abstract class. Methods in abstract class are may or may not abstract methods.

Sigiloso

25 de nov. de 2018

Abstract class can have absract and non abstract methods. Interface have only abstracts methods. It can have default and static methods also in some cases.