Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
code review example 4 - NodeOperand.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ParseTree
public class NodeOperand : Node
private double value;
/// <summary>
/// Initializes a new instance of the class.
/// </summary>
/// <param name="value"></param>
public NodeOperand(double value)
this.value = value;
public void Print()
Console.Write(string.Format(" {0} ", this.value));
public double Calculate()
return value;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.