I’m having trouble with Boolean expression while using classes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I’m having trouble with Boolean expression while using classes

How do you get/set the Boolean expression with in a class as an attribute or how can I store Boolean in a object in main? This is c# using visual studios

20th Mar 2020, 12:39 PM
Nisha Brown
Nisha Brown - avatar
1 Answer
+ 1
An example as follows: static void Main() { bool b1; bool b2 = true; b1 = 5 > 4; Console.WriteLine(b1); }
20th Mar 2020, 1:01 PM
JaScript
JaScript - avatar