What are the OOPS concepts?

Answer Posted / ketan mehta

The followings are referred as the oops concepts:
Encapsulation:
wrapping up of data and member function
together into a single unit class.
Abstraction:
Showing essential feature without background
detail. Which leads to data security from unauthorized user.
Inheritance:
The property of one class inherited property
of other class. That means object of a child class need to
define only those properties that make it unique within its
class.
Polymorphism:
It is a feature that allows one entity to have
multiple forms.Polymorphism can be achived by Operator
overloading and Function overloading.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1419


What is difference between inheritance and polymorphism?

573


What are the 3 principles of oop?

619


What is coupling in oops?

598


Can we define a class within the interface?

555






class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1701


What are different oops concepts?

578


What is pure oop?

599


Why do pointers exist?

663


What does oop mean in snapchat?

688


How do you answer polymorphism?

577


Why multiple inheritance is not possible?

602


to find out the minimum of two integer number of two different classes using friend function

1645


How to call a non virtual function in the derived class by using base class pointer

5278


What is encapsulation with example?

581