Company: Unify_Apps_MCQ
Difficulty: medium
Which among the following functions represents the concept of Polymorphism in this scenario? Scenario: Consider a scenario in a software development project where a team is designing a system to model various shapes. The team is implementing classes for different geometric shapes like circles, rectangles, and triangles. Each shape has a function to calculate its area, but the specific calculation method varies based on the shape. Undefined function Class member function Inline function Virtual function Which of the following is true regarding the given table definition? Consider the following table definition: 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 con