Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Default java methods?

Discussion in '2018.2 Beta' started by liortal, Jun 3, 2018.

  1. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,504
    In the 2018.2 beta release notes this is mentioned:
    (source: https://unity3d.com/unity/beta-download)

    Can someone elaborate on what this actually means ?
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,012
    This is about calling Java code from C# on Android. Java 8 has a feature called "default methods", which allows you to implement methods in interfaces, so that classes implementing that interface are not required to provide implementation for those methods.
    Read more here: https://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html
     
    codestage, Peter77 and liortal like this.
unityunity