Company: Unify_Apps_MCQ
Difficulty: medium
Which of the following best demonstrates Polymorphism here? Picture a team building a graphics toolkit that needs to model several kinds of figures. Developers are writing classes for distinct figures such as ellipses, squares, and pentagons. Every figure exposes a routine for computing its own area, yet the exact computation differs figure by figure. Undefined function Class member function Inline function Virtual function Given the table definition below, which statement is correct? CREATE TABLE Employees ( id INT PRIMARY KEY, name VARCHAR(50) NOT NULL, department VARCHAR(50) NOT NULL, salary DECIMAL(10, 2) CHECK (salary > 0), hire_date DATE NOT NULL, CONSTRAINT chk_dept CHECK (department IN ('Sales', 'Marketing', 'Finance')), CONSTRAINT unq_name_dept UNIQUE (name, department) ); The salary column can contain negative values. The department column can contain any string. The hire_date column can be left empty. Each combination of name and department must be unique. Which trait of