Help me in solving SYNJ8V2 problem

My issue

Why in every que we are taking class as CodeChef?
can we change the class??

My code

class Codechef{
    public static void main(String[] args){
        System.out.print((3+4) + (" and ") + (2+1));

Learning course: Learn Java
Problem Link: CodeChef: Practical coding for everyone


No, you cannot “modify” existing classes, just as you cannot modify methods of your own classes (other than by modifying their code directly).
You can, however, write your own class that “extends” predefined classes, and “@Override” methods from the base class.

1 Like

ok thank you


You’re welcome :grinning: