Professional Documents
Culture Documents
Abstract class - have both abstract methods and non abstract methods
Interface - class contruct that have only constants and abstract methods
}
}
modifier - public /private/protected/default
structure of interface
Simple inheritance
using Interface
Interface geometricobject
---> variable type
---> method draw()
Class circle implements geometricobject
1)Pure abstraction
2)Achieve multiple inheritance
3)resolve ambiguity problem arising from multiple inheritance