Skip to Content
Former Member
Jan 05, 2013 at 11:00 AM

Why Final Classes are used in ABAP


Hi Everyone,

Can you tell me why we declare a class as Final in ABAP? I have given the answer that -A class is declared Final if I don't want that class to be extended(Inherited). But this answer doesn't satisfy the interviewer. He insisted to know -What is the purpose for not extending the class? Why we need to declare a class as Final. So please can someone give me more satisfying or real-time example of " Why we declare a class as Final In ABAP" ?

Thanks in advance-