Object oriented always used to refer about objects.
Eg: strings, functions etc…
A set of codes enclosed in a block, usually we call it as a class. Object always refer to this class.
Inheritance and Encapsulation.
Inheritance means object using their parent objects properties.
Encapsulation refers wrapping up of data and code into a single block, usually refers to class. So only object of this class can use these methods and properties. No other objects can access this class.