Im noob in design pattern. I created a class, keeping one design pattern in mind. Can you tell which design pattern is this and also whether its structural, behavioural, creational, etc .
class MyClass(name: String, type: String) {
private val classOne by lazy { ClassOne(name, type).getMe() }
private val classTwo by lazy { ClassTwo(classOne).do () }
fun getTo() {
return classTwo
}
}
class ClassOne(name: String, type: String) : Collator(name) {
fun getMe(): ByteArray? {
return byteArray
}
}
class ClassTwo(byteArray: ByteArray) {
fun do() {
System.err.println(“ done ”)
}
}
Edit 1: Facade Design Pattern. I tried asking Chatgpt, gemini ai both were telling different different design patterns each time i asked them and if i ask with specific design pattern name, it responded with yes. So thats y i didnt reveal the type of design pattern in this community as well.
3