--%>

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 : Define Class inheritance Class

    Class inheritance: Whenever a super class is expanded through a sub class, a class inheritance relationship exists among them. The sub class inherits the attributes and methods of its super class. Class inheritance in Java, is single

  • Q : Define Single line comment Single line

    Single line comment: A comment is in the form:     // this line will be avoided by the compiler.

  • Q : What is Primitive Type Casting

    Primitive Type Casting: C/C++ allows you to cast between totally unrelated types. This can be problematic for model checking. Avoid type casting between unrelated types and in particular primitive types. For example,

    Q : Perform Exception Handling with

    On occasion, some of Brewbean’s customers mistakenly leave an item out of a basket already checked out, therefore they create a new basket containing the missing items. Though they request that the baskets be combined and hence they are not charged extra shippin

  • Q : Explain Array initializer Array

    Array initializer: This is an initializer for an array. The initializer takes the position of separate creation and initialization steps. For example, the initializer int[] pair = { 4, 2, };

    Q : Functions of System calls Show what are

    Show what are the different functions of System calls?

  • Q : Throughout system testing the

    Someone complains that throughout system testing the application frequently crashes. What probable process problem does which indicate?

  • Q : Illustrates XML is an important

    Illustrates XML is an important development.

  • Q : Define Identifiers Define Identifiers

    Define Identifiers and their naming convention in brief?

  • Q : Explain shell variables Explain the

    Explain the shell variables?