What small changes would you make to the classes to ensure


Consider the following classes:

2186_ae3b85ce-57d6-480c-8c7b-4422952ff7d2.png

The class Alg Expr represents algebraic expressions, including prefix, postfix, and infix expressions. Its method is Expression simply examines the expression for valid characters but does not consider the order of the characters. The class InfixExpre presents infix expressions. Its is Expression calls is Blank, and its display calls value Of .

a. Should isBlank be public, protected, or private? Explain.

b. If inExp is an instance of InfixExpr in the main method, can inExp invoke end Expression ? Explain.

c. What small change(s) would you make to the classes to ensure that the correct version of isExpression is called?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: What small changes would you make to the classes to ensure
Reference No:- TGS01422592

Expected delivery within 24 Hours