Is interface shape can used as a data-type?
and where as a circle can not be use as a data type when since it is not implemented shape?
Type: Posts; User: sagar474
Is interface shape can used as a data-type?
and where as a circle can not be use as a data type when since it is not implemented shape?
public class Main {
public static void main(String[] args) {
shape circleshape=new circle();
circleshape.Draw();
}
I am 5 years experienced in programming in C but Till I cant understand the languages like Java.
what is the use of using interfaces and abstract class since they do nothing.