Interview Question: What are the four basic principles of OOPS?

This Question has been asked in:

The four basic principles of Object-Oriented Programming System are listed below:

  • Abstraction: Abstraction is a process of hiding the implementation details and showing only functionality to the user. For example, sending SMS where you type the text and send the message. You don’t know the internal processing about the message delivery.
  • Abstraction lets you focus on what the object does instead of how it does it.
  • Inheritance: Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a parent object.
  • Encapsulation: Encapsulation in Java is a process of wrapping code and data together into a single unit, for example, a capsule which is mixed of several medicines.
  • Polymorphism: Polymorphism in Java is a concept by which we can perform a single action in different ways. Polymorphism is derived from 2 Greek words: poly and morphs. The word “poly” means many and “morphs” means forms. So polymorphism means many forms.

Other Variations of this Question

What are the main principles of OOPS
Register yourself for next
Pre-book your seat in the Job Ready Certification
Program now!

Join My Academy!

Learn the fundamentals of marketing, selling and entrepreneurship.
Gain real world skills which schools and colleges fail to teach:

– Job Ready Course
– Tech Startup Launchpad
– Entrepreneurs Blueprint

  • This field is for validation purposes and should be left unchanged.