《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
- In Serial134 Chapters
The Merchant Prince Book 1: Returning Home
Enter a world of deceit and assassins. Augustus DeCastellian is a member of a wealthy merchant family, with ports all over the known world. He is sent on a voyage to new lands to open trade routes, but when he returns he will need to fight, using his tools of manipulation and cunning, for what he is owed.Author's note: This story is somewhat slow-paced, especially in comparison to the norm on Royal Road. The first three chapters act almost as a prologue, to give you a feel for what the rest of the story will be like. So, I suggest new readers try to get to the end of chapter 3 before deciding if this story is for them.A few of my reviews have said that this story is abnormal for Royal Road. I agree with that sentiment, at least based on what I've read on the site. It was just an idea that was in my head, that I began trying to write once my hobbies were cancelled due to the virus. I found Royal Road after I started writing it. Honestly, it's probably not even tailored for the web-novel format. But it's the story I wanted to tell. Discord: https://discord.gg/sk63gep
8 298 - In Serial24 Chapters
NPC MAKER
Jan 1, 2022 Edit: Happy near years! Sorry for the long delays once again, I hope to write more frequently. The NPC-MAKER only has one goal… and that is to rule the world with his NPCs! He has the power to create any NPC he desires as long as he has the resources for it. He was obviously going to create slave NPCs to gather resources so he can focus on making more NPCs. There are way too many enemies in the world trying to kill him so he must create many NPCs stronger than himself to defend him and his empire! Unfortunately, he finds himself stranded in the desert with nothing around. He must survive the harsh conditions and hopefully create NPCs to help him. ~ What to Expect ~ - Lots of NPC interactions. Arc 1 Desert Survival Chapter 1 to... ( work in progress)
8 197 - In Serial11 Chapters
Devour The Heavens
For a thousand years the heaves have been closed. Celestial tribulation lightning no longer falls upon the evil doer. Crimes are commited with no hope for justice. A world balanced on a knife's edge between the heavens and hells, teeters over the edge and threatens to fall. To save the world and make right the injustice in the world. Nero a foreign entity to the world itself commited to a campaign 300 years in the making. With his army behind him, he turned back the forces of hell to their final strong holds. The source of the world's pain lay almost within his grasp. Can he reclaim Galatea the sword that swallows the Heavens or will the world sink forever into the burning hells? Seventeen years after the heavens were closed demon plagues ran rampant. More Ian a young man and only survivor of the Red Vine plague that consumed his village is forced at gun point to climb a mountain. Up on the peaks of the Atlas Mountain range was the Atlas sect. A group of qi experts said to accept any student who can climb to the peak of a mountain and light incense sticks. With his past burning behind him and the sheer cliff in front of him, he makes the climb. The power of the heavens left on earth are waning. Powerful qi experts that once stood against the hells themselves and battle the legendary arch demons have become frail. A great power vacuum has been opened. The only question is who will fill it. Will the humans find a way to stand as equals against the demons, or will demon kind rule over humanity?
8 106 - In Serial16 Chapters
Pilgrims and Fulcrums
Poetry will collect here. I hope it comes from my heart. I hope it reaches yours.
8 176 - In Serial26 Chapters
The Demon Eye Gem
Life for a swamp goblin is usually pretty straightforward. Avoid the giant snakes, gators, wild boars, and the other creatures of the wetlands. Steal whatever supplies you need from the nearby farms, and go on raids against the nearest towns for the sheer thrill of causing chaos. Dizzy was just a goblin. A swamp goblin. The kind of guy that adventurers kill without a thought while on their way to their real adventure. Mischievous but kind, silly and not an actual threat to anyone. At least that was the case before the pirates came. Orcs with sharpened steel arrived on the shores of the goblin swamp. His friends and families were taken. Everything and everybody lost. Now Dizzy has to be more than he ever thought he could be. Now Dizzy must become an adventurer and fight to free his people. But when a murderous minotaur pirate and his crew of orc swashbucklers arrive in the swamp, intent on turning the coastal region into his own pocket kingdom, Dizzy must find a way to escape and rescue his tribe before they are used as expendable sword fodder. With fellow goblins Kitty and YDB at his side, what could possibly go wrong?
8 154 - In Serial25 Chapters
Metal Fight Beyblade Truth or Dare 2020!
Hi everyone! I hope you like this book!Just a typical day of bladers being tortured, bringing back their , and even the host's worst nightmares, in the form of truth or dare, run by the worst people in history.Disclamer: Only Lily (which is me), some truths , dares and some of the plot belongs to me Other Truths and Dares belong to readers and Characters and beys belong to MFBFrom Lily.CDon't forget to follow if you liked it !Disclaimer: I am not a writer, so i am so sorry if you spot a mistake.Bye!date: 17/5/2020Warning, some language inappropriate for young kids, please be careful.
8 206

