Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
950 B
1
Indexable
Never
package com.JavaClass;

public class Main {
    public static void main(String[] args) {
        Client obj = new Client();
        obj.css();
        obj.colorcode("#FFA500");
        obj.html();
        obj.php();
        obj.python();
        }
}


interface FrontEnd {
    void css();
    void colorcode(String color);
    void html();
}

interface BackEnd {
    void php();
    void python();
}

class Client implements FrontEnd, BackEnd {
    public void css()
    {
        System.out.println("Frontend css method");
    }
    public void colorcode(String Code)
    {
        System.out.println("Color of the circle "+Code);
    }
    public void html()
    {
        System.out.println("Frontend html method");
    }
    public void php()
    {
        System.out.println("BackEnd php method");
    }
    public void python()
    {
        System.out.println("BackEnd python method");
    }
}