AndyB Well-known member Sep 25, 2013 #1 How can we determine if a class is static and cannot be extended? Is the only way to determine if a class is static is to create an add-on just to find out it doesn't work?
How can we determine if a class is static and cannot be extended? Is the only way to determine if a class is static is to create an add-on just to find out it doesn't work?
Jeremy in memoriam 1991-2020 Sep 25, 2013 #2 Look in the class and see how the functions are defined. They'll have the keyword static in them.
AndyB Well-known member Sep 25, 2013 #3 Thank you kindly for the information, Jeremy. So if I find any functions within a class that are static, the class is considered static and cannot be extended?
Thank you kindly for the information, Jeremy. So if I find any functions within a class that are static, the class is considered static and cannot be extended?
Jeremy in memoriam 1991-2020 Sep 25, 2013 #4 No, that function is static. If the full class is static (ie, all functions) you have a pretty good bet of not extending it.
No, that function is static. If the full class is static (ie, all functions) you have a pretty good bet of not extending it.
Marcus Well-known member Sep 25, 2013 #5 Are all classes which are in files directly in library/XenForo not extendable?