in Programming in C recategorized by
1,438 views
5 votes
5 votes

Which one of the following are essential features of object-oriented language?
 

A. Abstraction and encapsulation 
B. Strictly-typed 
C. Type-safe property coupled with sub-type rule
D. Polymorphism in the presence of  inheritance
  1.  $A$ and $B$ only 
  2.  $A,D$ and $B$ only 
  3.  $A$ and $D$ only 
  4.  $A,C$ and $D$ only
in Programming in C recategorized by
by
1.4k views

1 comment

3
3

1 Answer

7 votes
7 votes
Best answer

Essential features of object-oriented language are 

  1. Inheritance: forming a new class from an existing class. It helps to reuse code.  
  2. Abstraction: Provide only essential information to the outside world and hide background details.  
  3. Overloading: specify more than one definition for a function name or an operator in the same scope.
  4. Polymorphism: A call to a member function will invoke a different function depending on the type of object that invokes the function.
  5. Encapsulation: Binding data and functions accessing the data together and that keeps both safe from outside interference and misuse.

Now, go through the given options,

  • A is true.
  • B is false ( Perl is a loosely typed language but supports OOPS),
  • C is false
  • D is true

Answer is C)  A and D only

selected by
by
Answer:

Related questions