What is Oops concept? Example.

  • Encapsulation is when a group of related methods, properties, and other members are treated as a single object.
  • Inheritance is the ability to receive (“inherit”) methods and properties from an existing class.
  • Polymorphism is when each class implements the same methods in varying ways, but you can still have several classes that can be utilized interchangeably.
  • Abstraction is the process by which a developer hides everything other than the relevant data about an object in order to simplify and increase efficiency.
Share:

No comments:

Post a Comment

Friday, 28 June 2019

What is Oops concept? Example.

  • Encapsulation is when a group of related methods, properties, and other members are treated as a single object.
  • Inheritance is the ability to receive (“inherit”) methods and properties from an existing class.
  • Polymorphism is when each class implements the same methods in varying ways, but you can still have several classes that can be utilized interchangeably.
  • Abstraction is the process by which a developer hides everything other than the relevant data about an object in order to simplify and increase efficiency.

No comments:

Post a Comment

Popular

Total Pageviews

Archive