Jump to content

Support for Java-style interfaces in LabVOOP


Recommended Posts

Been working on a large project using by-reference classes (OpenG LabVOOP templates). Got into situations where I wished LabVOOP had native support for interfaces to reduce coupling between the different classes without having to create intermediate classes all the time; an approach one can only take so far since LabVOOP doesn't support multiple inheritance (which, btw, is fine by me: just gimme interfaces).

Link to comment

I prefer getting Scala style traits and mixin class composition instead of Java style interfaces. Practically traits are similar to interfaces but they can have private data of their own and method implementations as well. In mixin class composition the traits are included into some class in very much the same way as in multiple inheritance, however avoiding most of the problems of multiple inheritance.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.