Chapter4_1-ControlStructuresIntro

Mybalance yourbalance yourage 20 mybalance

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: pressions may be defined by linking other Boolean expressions using logical operators. • (myBalance <= yourBalance) && (yourAge > 20) • (! (myBalance <= yourBalance) ) !! (yourAge <= 20) • Boolean expressions may be assigned to boolean variables. • boolean isHeOlder = (myAge < hisAge) ; Page 7 Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP...
View Full Document

This document was uploaded on 03/03/2014.

Ask a homework question - tutors are online