Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 589 Bytes

File metadata and controls

24 lines (20 loc) · 589 Bytes

Describe Object – Coding Challenge

This project implements an extensible object description framework in C++. A common Shape interface is used, and object creation is isolated in a factory so new shapes can be added without modifying the main program.

Project Structure

include/  – header files
src/      – source files

Build

clang++ -std=c++17 -Wall -Wextra -Werror -Iinclude src/*.cpp -o describe_object

Run

./describe_object circle 5
./describe_object square 4
./describe_object rectangle 5 3
./describe_object triangle 3 4 5