design pattern
In that example
Public interface Packing {
Public String pack();
Public int price();
}
Public abstract class CD extends Packing {
Public abstract String pack();
}
Public abstract class Company extends Packing {
Public abstract int price();
}
Instead of this they can have two abstract class
Why they need interface?
What's that about builder pattern?
Обсуждают сегодня