Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Spaces:
KaiquanMah
/
TurkuBasicOOPinJava
Running

App Files Files Community
TurkuBasicOOPinJava / Week 6: Methods of OO Programming
26.8 kB
  • 1 contributor
History: 9 commits
KaiquanMah's picture
KaiquanMah
@Override public void add(int number) {this.result += number;}
fe7addf verified 4 months ago
  • 01A. Static members [= CLASS MEMBER, not object member]
    5.13 kB
    public static dtype method1(param1) {...} 4 months ago
  • 01B. Class StringHelper
    2.15 kB
    public static int method1(dtype param1) 4 months ago
  • 02. Class SecretAgent
    4.39 kB
    if (staticMethod2(param1)) {...} 4 months ago
  • 03A. Class variables = STATIC VARIABLES
    2.21 kB
    public static dtype STATICVARIABLEINCAPS = <value>; 4 months ago
  • 03B. Nordic countries as class variables
    728 Bytes
    public static String FINLAND = "FI"; 4 months ago
  • 04. Fish within permitted limits
    2.41 kB
    this.attribute1 >= Class2.PUBLICSTATICATTRIBUTE2 4 months ago
  • 05A. Interfaces+++
    4.87 kB
    interface INTERFACE1 {dtype method1();} 4 months ago
  • 05B. Write an interface class Calculator
    1.31 kB
    void add(int number); double getResult(); 4 months ago
  • 06. The Calculator implements an interface
    3.6 kB
    @Override public void add(int number) {this.result += number;} 4 months ago