search
Rupali Bank (ANE): 21

What is the characteristics of OOP programming that allows binding date and methods to work as a unit?

ক) Inheritance
খ) Encapsulation
check_circle
গ) Polymorphism
ঘ) Projection
verified সঠিক উত্তর: Encapsulation
ব্যাখ্যা: Encapsulation is an Object-Oriented Programming (OOP) characteristic that allows data (attributes) and methods (functions) to be bundled together within a single unit, typically a class. This protects the data from being accessed directly from outside the class, allowing controlled interaction through public methods. In Contrast, Inheritance allows a class to inherit properties and methods from another class. Polymorphism allows objects to be treated as instances of their parent class, enabling different methods to be used in a uniform way.

সম্পর্কিত আরও প্রশ্নসমূহ

মেনু