How mirzahamzabaig06/week-3-oops works
A small Java console demonstration constructs points, triangles, complex numbers, and rational numbers, performs arithmetic where supported, and prints the results. The source shows no external input, persistence, or additional runtime layers.
Main entry points: Main.java Demo entry point · Triangle.java Triangle values · Point.java Point arithmetic · ComplexNumber.java Complex arithmetic
Components 6
Other components
- Demo entry point
Main.java - Point arithmetic
Point.java - Triangle values
Triangle.java - Complex arithmetic
ComplexNumber.java - Rational arithmetic
RationalNumber.java - Console output
Connections 6
- Demo entry point → Point arithmetic: creates and computes
- Demo entry point → Triangle values: creates
- Demo entry point → Complex arithmetic: creates and computes
- Demo entry point → Rational arithmetic: creates and computes
- Triangle values → Point arithmetic: copies points
- Demo entry point → Console output: prints results