What are the OOPS concepts?

Answer Posted / abhradeep

Object is form of data abstraction so the OOP concepts will be as follows

1) Encapsulation (E.G Class)
2) Abstraction (E.G Object)
3) Polymorphism (e.g Overloading, overriding)
4) Inheritance (e.g Interface, Abstract Class)
5) Dynamic binding (e.g new keyword @ the runtime)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why multiple inheritance is not allowed?

828


Advantage and disadvantage of routing in telecom sector

1038


why reinterpret cast is considered dangerous?

2112


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1824


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

886


Why is polymorphism important in oop?

827


What type of loop is a for loop?

870


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

1996


What is balance factor?

824


What is the importance of oop?

851


What is polymorphism in oop example?

750


What is abstraction encapsulation?

874


Why is polymorphism needed?

800


Why do we need polymorphism in c#?

892


What is data binding in oops?

836