features of OOPS

Answer Posted / prp

The primary features of an object oriented language are:

Encapsulation - This allows every object to have its own
properties and behaviors separate from others, and its own
little "capsule" to keep its properties in.
Inheritance - This allows an object to inherit the
properties of its ancestors.
Polymorphism - The allows an object to be treated like one
of its ancestors, i.e. if Truck was a subclass or
descendant of an object called Automobile, it can redo
behaviors that Automobile had, like Automobile has a
suspension feature that has it set to 10 inches tall, Truck
overwrites it and says its 30 inches tall.
Abstraction - This idea is related to encapsulation in that
you don't care how the object works, but you can make it
behave in certain manners.

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is oop better than procedural?

558


which feature are not hold visual basic of oop?

1711


What is multilevel inheritance?

713


How is polymorphism achieved?

572


What is an interface in oop?

585






What is abstraction in oop with example?

635


Why do we use inheritance?

622


What is the benefit of oop?

561


What is inheritance write a program to show use of inheritance?

603


What is interface? When and where is it used?

1654


Write a program to reverse a string using recursive function?

1780


What does and I oop mean?

607


What is an example of genetic polymorphism?

643


program for insertion ,deletion,sorting in double link list

2269


What is difference between polymorphism and inheritance?

607