Emily, you remind me of a wonderful period of my life with C#. Never in my life, I thought even once that I would learn C#. Yet in 2017, when I was introduced to the language, I knew it is something that I am gonna adore a lot. Over the years my love for it only increases. It's so expressive, elegant; you can relate as it's pretty close to java.
I committed so much so that I looked down other languages like js, PHP. Ignoring js wasn't a good decision, btw.
So this year, I am truly devoted to Js. My path is kinda opposite of yours as you can see. Yet I can feel the excitement of the journey.
Wish you all the best along the way.
Ohh, I couldn't help but writing the code in C#( love of my life 😍):
//Both classes are under the same namespaceclassProgram{staticvoidMain(string[]args){varemilysCoffeMaker=newCoffeMaker(5);Console.WriteLine(emilysCoffeMaker.MakeCoffee());}}classCoffeMaker{//this public property automatically will create a private field _coffepercup behind the scene publicintCoffePerCup{get{return20;}}//this public property automatically will create a private field _waterpercup behind the scene publicintWaterPerCup{get{return14;}}//public property to create setterpublicintCupsToMake{get;set;}publicCoffeMaker(intcupsToMake){this.CupsToMake=cupsToMake;}//method to make coffeepublicstringMakeCoffee(){return$"You will need {WaterPerCup*CupsToMake} oz. of water and {CoffePerCup*CupsToMake} grams of coffee beans to make {CupsToMake} cups of coffee.";}}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Emily, you remind me of a wonderful period of my life with C#. Never in my life, I thought even once that I would learn C#. Yet in 2017, when I was introduced to the language, I knew it is something that I am gonna adore a lot. Over the years my love for it only increases. It's so expressive, elegant; you can relate as it's pretty close to java.
I committed so much so that I looked down other languages like js, PHP. Ignoring js wasn't a good decision, btw.
So this year, I am truly devoted to Js. My path is kinda opposite of yours as you can see. Yet I can feel the excitement of the journey.
Wish you all the best along the way.
Ohh, I couldn't help but writing the code in C#( love of my life 😍):