Explain the difference between Final class and Abstract class?
Submitted by: AdministratorFinal Class:
A Class which Can't be inherited by other class, that class is called final class.
You all knows that final class is inbuilt in java. But in C++ you have to create final class.Two types of Final class, you can create. One who want to create object of final class on Heap and other who wants to create object of Final class on stack.
1) It makes use of private constructor, virtual inheritance and friend class.
2) In place of private constructor, use private Destructor.
Because Constructor can be overloaded and Destructor can't be overloaded.
Submitted by:
A Class which Can't be inherited by other class, that class is called final class.
You all knows that final class is inbuilt in java. But in C++ you have to create final class.Two types of Final class, you can create. One who want to create object of final class on Heap and other who wants to create object of Final class on stack.
1) It makes use of private constructor, virtual inheritance and friend class.
2) In place of private constructor, use private Destructor.
Because Constructor can be overloaded and Destructor can't be overloaded.
Submitted by:
Read Online Magento Job Interview Questions And Answers
Top Magento Questions
☺ | What is Magento? |
☺ | Explain about the Modules of Magento? |
☺ | What are the commonly used block types? What is the special in core/text_list block type? |
☺ | Why I got Access denied error after installing new Magento extension through downloader and try to access its configuration settings? |
☺ | Explain about the history of Magento? |
Top Application Program Categories
☺ | AutoCAD Interview Questions. |
☺ | Microsoft Office Interview Questions. |
☺ | Microsoft Outlook Interview Questions. |
☺ | Microsoft Excel Interview Questions. |
☺ | MATLAB Interview Questions. |