《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 Serial78 Chapters
The Bride Of The Vampire King
Of course I'm happy, nothing can make me happier than this, he said, as he stepped forward and stood in front of Mila.
8 758 - In Serial8 Chapters
Cultivator vs. System
To hang out, join my Discord server! Book 1, The First Step is on Kindle, KU, and Audible! Book 2 follows on July 26th. Book 3 is currently on my Patreon and will migrate to Amazon eventually. If you'd like to read my newest free work, check out Good Guy Necromancer on Royal Road. Screw your System. I just want to cultivate. Long Fang is stranded in a foreign world where proper cultivation has been replaced by annoying blue screens. He is confused and alone, but not for Long. He completely ignores the System. He makes friends. He forms his own, wholesome sect, and spreads cultivation across the wild world. But blue screens do not take kindly to rejection, and Long Fang’s stubbornness soon finds him pitted against the forces that be. To overcome the System tribulations, he must quickly grow stronger and wiser… But first, he needs to get past that one annoying town guard. This is a fun, light-hearted read, not a deep one. Chapter updates are M-W-F, and constructive feedback is more than welcome. Thank you for reading!
8 136 - In Serial195 Chapters
High-Class Mob
As Leo opened his eyes, he found himself in the body that is not his. Colt Edgeworth is a man with little to no information in the story Sword of Heaven. The character Colt Edgeworth died in the hands of his fiancé after experiencing some stabby-stabby action. And that is who Leo had become. ‘I am in a world that has magic, different technology, customs, races, and Gods actually do shit, and I have a woman who loves me but also wants to turn me into swiss cheese...’ He looked at the mirror, contemplated his fate, and came to a single conclusion... ‘So be it, I’ll try living.’ Note: This is my first time writing and English is not my first language, so there are mistakes, I only managed to Re-edit [Volume-1 Chapter 1 - 20], please tell me about the mistakes. The cover is not mine, I just saw it and thought it was awesome...all rights reserve to the original creator Kolsga https://www.deviantart.com/kolsga/art/Drake-571265818
8 505 - In Serial25 Chapters
I was Bored So I Became The Antagonist In a VR Game
its the year 2042 and Virtual reality has reached new hights. The human race is addictaed to the new game " Expanding stars online" (ESO). Xiler is a 17year old hardcore gammer, who after 3 years of farming and gaming has finally secretly become the strongest force in the game. What will he do next? NOTE FROM ARTHUR Hey I wanted to give writing another try. the last time i wrote one this site I was in school so I had to drop the story, but im hoping I can get through this story. Not very long chapters, maybe give something people can read between while waiting for other books. lol my native language is english but my spelling sucks. so I am very sorry for spelling mistakes, grammer, or a missing word. the last book I did was " lord fear" here on the site. lol I can show you better then i can tell you.
8 195 - In Serial24 Chapters
The Choices We Make
The Moldy Donut is a derelict gateway through space that links two distance solar systems. It has been made obsolte by cheaper jump drive technology and is mostly abandoned. But a change in resource availability has made ring gates such as the Moldy Donut relevant again. A crew of technicians must battle the Donut's risks in order to bring just one of her segments back online.
8 80 - In Serial17 Chapters
The Art Of Politics
In the wake of the death of Vice President Dallace Bolton Isabella and her father Jeffery have to deal with an international crisis that too threatens the safety of the United States of America.
8 109