《Programming Wizards!》Levels
Advertisement
He was awoken by the sound of laughter. Amare and Oseye were talking. He tried to sit upright but he was covered in blankets. “You’re awake,” he said and they stepped closer.
“Mild hypothermia,” she said. “Like this loser,” she pointed to Amare.
“Hey, I didn’t know!”
“So, you and him talk all the time and all of a sudden he decides to do the same thing you did?”
“I—I didn’t tell him about it.”
“He didn’t ask what was wrong with your face?”
“He did, but I didn’t tell him that it was dangerous to fly so high!”
“So, you conveniently left out that part and he goes on to do the same thing a couple days later.”
“Right,” he said defeatedly. “You’re right, Oseye. I should have told him.”
“I’m just saying. I’ll tell Shuang he’s awake.”
“Andrew, what’s going on here?” he pointed to the screen. “It’s not letting me access the ‘Value’ variable.”
class TestClass { int Value; } void Main() { TestClass x1 = new TestClass(); x1.Value = 1; }
“The ‘x1.Value’ line is throwing an error.”
“Here,” pointed Andrew at the error message. ‘The field TestClass.Value is inaccessible due to its protection level.’
class TestClass { public int Value; }
The error was gone. “Classes’ protection level is ‘private’ by default?”
“Yes, in the language you’re using, it is. You had to mark it as ‘public’ to be able to access the variable from outside of the class.”
“How are you feeling?” asked Amare.
“Amare,” said Vick with a pitiful look. “I saw her.”
He knew without another word who Vick was talking about, and the smile on his face vanished. He took a seat beside the bed. “Did she reach for you, too?”
Advertisement
“She did.”
He covered his face with his hands and began sobbing.
“Amare,” worryingly he said and tried to reach out to him but the blankets were wrapped around his arms. “Amare,” he said again. “Maybe it was a hallucination.”
“I have to—” he said through his tears. “I have to—I have to go up there again.”
“Amare, no. You can’t.”
“But, she’s waiting there.”
“We don’t know if it is her.”
“You said,” he looked at Vick, “it was her.”
“Amare,” he paused, and he wanted to take back his words, he had never seen him in such despair. “I thought it were her because you thought it were her.”
“No, I swear it were her. Didn’t they disappear over the clouds? Lost on the radar, above how many meters?”
He tried to remember, and it didn’t take long. He remembered the incident like it were yesterday. “Fifteen-thousand.”
“Fifteen-thousand meters, Vick. We have to go back.”
“With a heater,” he responded instantly.
“I honestly like this better than class,” said Willard. “We should meet to review occasionally.”
“Mister Vick sucks at teaching,” said Roy. “That’s for sure.”
“Mister Vick looked tired yesterday,” said Gus.
“I’m sure that was the reason for his absence today,” said Andrew. “Everyone’s got to take breaks. He’ll be better equipped to teach us soon.”
“Andrew,” said Roy. “I set it to one here, but when I print it out, it’s two.”
“Oh, that’s because the variable is a reference to the object.”
void Main() { TestClass x1 = new TestClass(); x1.Value = 1; TestClass x2 = x1; x2.Value = 2; Console.WriteLine(“x1: ” + x1.Value); Console.WriteLine(“x2: ” + x2.Value); }
Advertisement
“Object?”
“Yes, an instance of a class is an object.”
“Ah, now I remember Mister Vick teaching us that. The class is like a blueprint and using the ‘new’ keyword makes an object from that blueprint?”
“Exactly. You seem to be catching on quick, Roy.”
“That still doesn’t explain why both of them are—” he paused. “I see, reference type?”
“You figured it out on your own.”
“You helped jog my memory, thank you.”
Advertisement
La puerta de Maltras
*Spanish* Un nuevo mundo, una nueva vida. Luego de fallecer, un chico reencarna en un universo alterno durante épocas de conflicto y culturas en desarrollo. Espadas y magia, una aventura por descubrir los nuevos secretos que oculta este nuevo universo. Also, the english version: https://royalroadl.com/fiction/10059
8 723Teenage Badass
Finn is a Helfwir, a monster hunter born. At the age of 8, Finn was capable of destroying a vampire with a plastic spoon. By the time she was 10, Finn knew a hundred ways of killing pretty much everything that went bump in the night. On her 14th birthday, Finn decides she wants to try living a normal life. She leaves home for Orsonville and enrolls in its high school. There, Finn will have to learn to deal with petty bullies, tenuous friendships , the hardships of teenage love and a werewolf cult that's hell-bent on world domination, all without revealing her true identity. This is shaping up to be a hell of a school year.
8 87Chronicles of Athionia
Betrayed and left for dead. Perfect setup for a revenge saga. Especially when the betrayal is committed by someone who meant everything to you. Scott Degen was no exception. However, instead of taking revenge after the fact, he decided to go back in time and nip the betrayer in the bud. I know, pretty crazy. He did pull it off though. However, things didn’t go according to his plan. Then again, they rarely do. Hrax: “I’ll grant you your wish. You’ll be reincarnated and have a chance to exact revenge. Do you accept?” Scott: “Oh god … thank you! Thank you so much! I accept, you bet I accept.” Hrax: “Perfect. How good is your gaming skills? Played RPGS before?” […Silence…] Scott: “Huh?” Hrax: “Do you prefer a system that’ll grant you new abilities as you grow stronger?” Scott: “Sys…system? Hey…what’s going on?! I didn’t ask for a…” Hrax: “Great, let’s go with that! Brace yourself, Athionia awaits your adventure!” [Epic portal music. Portal opens. Scott starts getting sucked into Portal] Scott: “AthioWHATNOW? HEY! WHERE ARE YOU SENDING ME?! THIS IS NOT WHAT I….” […]
8 153Dragon Spirit
In a time of War and Strife, a dragon is born into the World. Kind, Fearless, and completely inexperienced, he battles his way up the evolutionary ladder. Always growing stronger, he sets out to explore his wide world, keeping his friends close, and decimating any who dare to be his enemies. Read on as he meets many creatures, talks back to doting Gods, and slays countless other beasts on his way to reach his destiny! Written by a brand new author, this is a mainly light-hearted adventure story. It’s really not following one distinct genre, instead incorporating fantasy, game worlds, reincarnation, Xia-Xia, and potentially some romance ( ; - D) into a story. Release schedule of about 2-3 chapters a week. Comments and questions are always welcome!
8 192That Emo Kid (boyxboy)
JAKE THOUGHTS
8 122My Best Friend's Baby
17 year old Claire's life is like a rollercoaster there's ups and downs. She gets pregnant by her best friend at a party and then there's more downs than ever. ******** This is the very first time I've ever tried to write anything like this so it's probably sucky but maybe someone will like it. :)
8 126