--%>

Basic features of OOPs

Illustrate the basic features of OOPs?

E

Expert

Verified

There are four basic features of OOPs which are as follows:

  • Abstraction – This feature refers to the method of expopsing simply the appropriate and necessary data to the users not including unnecessary information.
  • Polymorphism – This feature allows us to use an entity in numerous forms.
  • Encapsulation - This feature prevents a data from unnecessary access through binding of code and data in a particular unit called object.
  • Inheritance – It encourages the reusability of code and eradicates the use of unnecessary code. It is a property by which a child class gets all the features described in its parent class. When class inherits the general properties of other class, the class which is inheriting the properties is known as a derived class and the class which permits inheritance of its general properties is known as a base class.

   Related Questions in Programming Languages

  • Q : What is Runtime stack Runtime stack :

    Runtime stack: It is a stack structure maintained by the Java Virtual Machine which records that methods are presently being executed. The most of late entered technique will be at the top of the stack and the main technique of an application will be

  • Q : ERD What is the meaning ofDerive the

    What is the meaning ofDerive the department and staff relations from the following ERD.

  • Q : Create a BottomUpTwoThreeFourTree class

    You will need to create a BottomUpTwoThreeFourTree class, with a BottomUpTwoThreeTreeFourTree constructor which keeps no parameters. BottomUpTwoThreeTreeFourTree will require an insert(int x) method, which will insert the value 

  • Q : What is message queue Describe the

    Describe the message queue?

  • Q : Define Checked exception Checked

    Checked exception: An exception which should be caught locally in the try statement, or propagated through a throws clause stated in the method header.

  • Q : What is Class Selector in the CSS

    Explain what is meant by the Class Selector in the CSS?

  • Q : Define the term Host system Define the

    Define the term Host system: It is a computer system on which a process is executed or run.

  • Q : Define Class scope Class scope :

    Class scope: Private variables stated outside the methods in a class contain class scope. They are available from all methods within a class, in spite of the order in which they are stated. The private methods too contain class scope. Variables and me

  • Q : What is an Exception handler Exception

    Exception handler: It is a try statement which acts as an exception handler - a place where exception objects are dealt and caught with.

  • Q : Explain Two dimensional array Two

    Two dimensional array: A two dimensional array is a continuous memory location having similar kind of data arranged in row and column format (such as a matrix structure). D