Sagar Suri
01/20/2020, 12:21 PMSubClass
but a factory which will give the instances of these SubClasses
and also provide access to the common functions which are in the parent class. Is it possible?
class GodClass {
fun common(){}
fun a(){}
fun b(){}
fun c(){}
fun d(){}
}
abstract class ParentClass {
fun common(){}
}
class SubClass1: ParentClass {
fun a(){}
}
class SubClass2: ParentClass {
fun b(){}
fun c(){}
}
bitkid
01/20/2020, 12:26 PMelizarov
01/20/2020, 12:29 PMSagar Suri
01/20/2020, 12:32 PMSagar Suri
01/20/2020, 12:35 PMAnalyticsTracking
class basically. I am just trying to break down the GOD class into different mini classes with dedicated analytics functions for a particular feature.
There are common analytics functions used by different features in the project.
I am not overriding any functions. I am just copying all the unique analytics functions to their dedicated feature classes and moving common analytics functions to a common class.Sagar Suri
01/20/2020, 2:44 PM