- AProcedure-Oriented
- BObject-Oriented
- C Both a and b
- DNone of the above
Time Taken:
Correct Answer:
Wrong Answer:
Percentage: %
Object-Oriented
In Object-Oriented Programming, polymorphism is the ability of an object to take on multiple forms. It allows objects of different classes to be treated as objects of a common superclass, particularly through method overriding (runtime polymorphism) or method overloading (compile-time polymorphism). This flexibility enables a single interface to represent different underlying forms (data types).
The behavior of an object in object-oriented programming is represented by its member functions (or methods), which define the actions the object can perform. Member functions encapsulate the logic that allows the object to interact, respond to messages, or carry out operations based on its current state.
Data members, on the other hand, represent the state of the object, not its behavior.
Procedure Oriented Programming (POP) is a programming technique that focuses on a sequence of well-defined steps or procedures to solve a problem. It organizes code into functions or procedures, which perform specific tasks, and is structured in a linear way to carry out instructions in a step-by-step manner.
An object in Object-Oriented Programming (OOP) is typically represented by two attributes:
A program is a set of instructions given to a computer to perform a specific task. It is written in a programming language and executed by the computer to carry out desired operations.