[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

[Advertise on 4chan]


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: sw9psw96erq51[1].jpg (71 KB, 912x1024)
71 KB
71 KB JPG
var woman = new object();
>>
>>81459074
based
>>
>>81459074
unironically happened at my first job. bunch of us juniors getting trained, the lead was a bit of a sperg and giving us the rundown on OO, made and object called women, and defined methods in it like make_sandwich and transitioned it's location state to 'kitchen'. also made a joke about pajeets with an indian guy in the room
>>
public class Negro() : Hominidae
{
private const bool CanMuhfuggin = true;
private const bool CanMuhDick = true;
private int Intelligence;

public Negro()
{
Intelligence = new Random().Next(0,70);
}

public void Encounter(Object source, EventArgs args)
{
if(source.GetType() is Police)
{
if(CanMuhfuggin) Resist();
}
else if(source.GetType() is WhiteWoman)
{
if(CanMuhDick) Assault();
}
else
{
if(Intelligence < 100) NigWalk();
}
}
}
>>
File: 1558113835275.jpg (80 KB, 1024x1024)
80 KB
80 KB JPG
>>81459308
Nice
>>
>>81459443
make it
private unsigned int Intelligence : 6;
>>
File: yW76okwf_400x400.jpg (30 KB, 400x400)
30 KB
30 KB JPG
>>81459074
based
>>
>>81459668
I considered making it nullable
>>
>>81459716
What about mutable? xD
>>
public enum Gender
{
Male = 0,
Female = 1,
Other = 0,
}
>>
Dog dog = new Dog();
delete dog;
>>
>>81459835
>Other
cringe
>>
>>81460047
look closer
>>
>>81459308
based
>>
>>81460037
Even /b/ can't accept this kind of rekt
>>
File: 1467261755844.png (90 KB, 325x256)
90 KB
90 KB PNG
>>81460058
look where
>>
>>81459443
private const bool DinduNothing = true;
>>
>>81460037
throw new NotTheHeckingPupperinoException();
>>
>>81460069
Other is an alias for Male
>>
>>81460129
that's even bigger cringe
>>
>>81460037
public class Dog : Cat
>>
File: CatDog_render.png (317 KB, 1077x788)
317 KB
317 KB PNG
>>81460150
>>
File: atftalk.jpg (24 KB, 575x619)
24 KB
24 KB JPG
>>81460037
>delete dog;
>>
>>81459074
ywnbwaw
>>
File: g023.png (124 KB, 768x1105)
124 KB
124 KB PNG
biologicalsex1 = "male"
biologicalsex2 = "female"
gender1 = "man"
gender2 = "woman"

bornas = input("Were you born as male or female?: ")

if bornas == biologicalsex1:
print(f"You will never be a {gender2}")
elif bornas == biologicalsex2:
print(f"You will never be a {gender1}")
else:
print("There are only 2 genders")
>>
>>81460460
public Object ywnbwaw()
{
return new Cringe(You);
}
>>
>>81459074
Yeah, none of us have heard this one before OP.
>>
>>81459835
>>81460539
giggled, underrated
>>
>>81460632
goto Reddit;
>>
>>81460748
but Reddit just has
goto 4chan;
>>
>>81460780
Is 4chan a valid name?
>>
>>81459074
>var
women never change
>>
>>81459074
>>81459308
>>81459443
posting in based thread
>>
>>81460047
>>81460069
>>81460138
get off this board
>>
>>81460117
kek
dsHSAHhshahahhaha
>>
>>81459074
>>
>>81460979
crash(car, train)
>>
>>81460979
>Faimly
>>
>>81460979
>>81461075
it's a good thing there was a typo and it did not compile
car crash averted
>>
>>81461086
Yeah but now the Faimly family had a massive car wreck for no reason.



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.