Skip to content
Ravnary
A Knowledge Platform
Categories
Learn
Cheatsheets
Paths
Favourites
Review
Community
Colour theme
Light
Dark
System
Learn
SOLID Principles
Liskov Substitution Principle
Quiz
Q 01
/ 05
Intermediate
Question 1 of 5. 0 correct, 0 incorrect.
Square
extends
Rectangle
, and setting either side of a square sets both. Code written for rectangles calls
set_width(5)
, then
set_height(4)
, then
area()
on a square. What does it return?
Your answer
Check answer
Home
Learn
Paths
Saved
Community