The problem of rewriting the parent class in the secondary development of Maximo

Source: Internet
Author: User

Recently, we are engaged in material standard module customization development. Today we write an excuse for inheriting the parent class mrlineset and implementing mrlinesetremote at the same time, as shown below:

/*** @ Author psun Email: 290796120@qq.com * @ date 2011-7-11 11:36:24 */public class cumprlineset extends mrlineset implements mrlinesetremote {/*** @ fields serialversionuid */Private Static final long serialversionuid = 1l; Public cumprlineset (mboserverinterface MS) throws mxexception, RemoteException {super (MS );}}

However, eclipse does not prompt me to rewrite the getmboinstance () method.

Later I thought about the principle as follows: cumprlineset inherits mrlineset, while mrlineset inherits mboset. Mboset is an abstract class, And mrlineset has implemented the abstract delivery of mboset. Therefore, eclipse in the cumprlineset class does not prompt us to implement it.

However, we still need to manually add the implementation of getmboinstance to overwrite the mrlineset method. Haha

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.