Welcome to Incels.is - Involuntary Celibate Forum

Welcome! This is a forum for involuntary celibates: people who lack a significant other. Are you lonely and wish you had someone in your life? You're not alone! Join our forum and talk to people just like you.

review this java to python translation for any errors

fukurou

fukurou

the supreme coder
★★★★★
Joined
Dec 17, 2021
Posts
5,229
Online time
1d 7h
Java:
public class Brain{
    private Thinkable chi;
    private Actionable MVC;
    public Brain(actionable MVC, thinkable chobit) {
        chi=chobit;this.MVC = MVC;
    }

    public void doIt(String ear, String skin, String eye){
        String result = chi.think(ear,skin,eye);
        MVC.act(result);
    }
}

Python:
''' Brain CLASS '''


class Brain:
    def __init__(self, chobit: Thinkable, mvc: Actionable):
        super().__init__()
        self.chi: Thinkable = chobit
        self.mvc: Actionable = mvc

    def doIt(self, ear: str, skin: str, eye: str):
        temp_str: str = self.chi.think(ear, skin, eye)
        self.mvc.act(temp_str)
 

Similar threads

fukurou
Replies
1
Views
774
Dr. Autismo
Dr. Autismo
Shaktiman
Replies
33
Views
8K
SandNiggerKANG1
SandNiggerKANG1
fukurou
Replies
1
Views
353
racoon4
racoon4
InMemoriam
Replies
44
Views
10K
DoomThreeKoala
DoomThreeKoala

Users who are viewing this thread

shape1
shape2
shape3
shape4
shape5
shape6
Back
Top
×
Sponsored
Stake.us
America's #1 Social Casino
Slots, Poker & More
Join Now →