Which one of the following is the core property of Object Oriented Programming ?
Which one of the following is the core property of Object Oriented Programming ? Correct Answer Encapsulation, polymorrphism, and inheritance
Object Oriented Programming Concepts: Class: Blueprint for creating objects. Objects: An instance of a class. Abstraction: Hiding internal details and showing functionality is known as abstraction. For example, phone call. We make a call but don't know the internal processing. Encapsulation: Binding (or wrapping code) and data together into a single unit is known as encapsulation. For example, Capsule. It is wrapped with different medicines. A java class is the example of encapsulation. Inheritance: When one object acquires all the properties and behaviours of a parent object or parent class, it is known as inheritance. Polymorphism: If one task is performed in different ways, it is known as polymorphism. In Java, we use method overloading and method overriding to achieve polymorphism. Another example is: a cat speaks meow, dog barks woof etc.
মোঃ আরিফুল ইসলাম
Feb 20, 2025