Sort by

recency

|

366 Discussions

|

  • + 0 comments

    class Arithmetic{ int add(int x, int y){ return x+y; } }

    class Adder extends Arithmetic{

    }

    public class Solution {

    public static void main(String[] args) {
        System.out.println("My superclass is: Arithmetic"); 
        Adder a = new Adder();
        System.out.print(a.add(12, 30)+" ");
        System.out.print(a.add(10, 3)+" ");
        System.out.print(a.add(10, 10)+" ");
    }
    

    }

  • + 0 comments
    class Arithmetic{
        public static int add(int a, int b){return a+b;}
    }
    class Adder extends Arithmetic{}
    
  • + 0 comments

    Here is java inheritance II solution - https://programmingoneonone.com/hackerrank-java-inheritance-ii-problem-solution.html

  • + 0 comments

    I've been using Orion Star 777 for a while now, and I must say it delivers one of the most exciting online gaming experiences I've had. The platform is well-designed, offering a wide variety of slot and fish games that are not only fun but also highly rewarding.

  • + 0 comments

    abstract class Arithmetic{

    public int add(int a , int b){
        return a+b;
    }
    

    }

    class Adder extends Arithmetic{

    }