1.

Shubhra is writing an OOP code for items like car, truck, bus etc. These items under the class vehicleare called(a) methods(b) items() objects(d) attributes5. Wrapping up of characteristics and behaviour in one single unit is(a) Encapsulation(b) Abstraction(c) Inheritance(d) Polymorphism6. Wrapping up of data and associated functions in one single unit is called(a) Encapsulation(b) Abstraction(c) Inheritance(d) Polymorphismchitecture and​

Answer»

OPTION(c) i.e " object "

5  Option(a)

6  Option(a)

Explanation:

  • The object is the items of the class .We can create the object for ACCESSING the properties and methods of a class .As mention in the question the VEHICLE is a class ALSO car,truck ,bus are the items it means it is a object of the class vehicle .
  • The wrapping of data and function i.e method into the single unit is called encapsulation .It is the feature of the object oriented programming language .The encapsulation id encapsulating the behavior of the class in the single unit that's why encapsulation is the correct answer of the 5 and 6 question .

Learn More :



Discussion

No Comment Found