Lab 6: Class

Problem Set 6.1: Class, Object, Method

  • Design a Class of your choice.

    • Example

      • Student

      • Geometrical Shape

        • Point, Line, Plane

        • Triangle, Quadrilaterals/Quadrangle (Square, Rhombus, Rectangle, Parallelogram, Trapezoid), Polygon

        • Circle, Ellipse, Hyperbola, Parabola

        • Cone, Sphere, Cylinder

      • Bank Account

      • Book

      • Product

      • Course

  • You must define different Constructors.

  • You must define at least four (4) other Methods.

  • You must use different Access Modifiers (public, private).

  • You must declare some Objects and Call different Methods for that Objects.

Last updated