Hello,
abstract class MyClass1 {
}
class test extends MyClass1 { }
class test2 extends MyClass1 { }
although Abstract class cannot be inherited...this code works. Does anyone know how this design pattern is called?
What? You can inherit from an abstact class. In fact, you cant directly instantiate an abstract class.
What is your question?
class test extends MyClass1 {
class test2 extends MyClass1 {
given this code, which design pattern is being used?
None really. Its just a simple class abstraction.
Is this some sort of quiz?
Does anyone know how this design pattern is called?
The use of interfaces. Wait, that isnt really a design pattern as per the Gang of Four, but yeah.
well thats the question and the code provided! thanks