CSE Assignment 2.1
CSE Assignment 2.1
● Encapsulation: Bundling data and methods that operate on that data into a single unit
or class. It hides internal details and exposes only necessary functionalities.
● Abstraction: Hiding complex implementation details and showing only the essential
features of the object.
● Inheritance: A mechanism by which one class (child) inherits the properties and
behaviors of another class (parent), promoting code reuse.
Algorithm complexity is a way to describe the performance of an algorithm in terms of time and
space. The two major types are:
Understanding complexities helps in selecting the most efficient algorithm for solving a problem.
4. Discuss why algorithms and flowcharts are essential prior to writing a computer
program.
● Flowcharts offer a visual representation of the algorithm, helping to understand the flow
of logic.
● Importance:
Ease of Use Difficult to write and debug Easier to learn and maintain