Object-Oriented Programming

Philippines
December 18, 2006 7:31pm CST
What is object-oriented programming? What is polymorphism? What is inheritance? What is abstraction? What is encapsulation?
1 person likes this
3 responses
@iAlicia (758)
• United States
20 Dec 06
Hmmm... these sound like homework questions, lol. 1. What is object-oriented programming? A type of programming in which programmers define not only the data type of a data structure but also the types of operations, aka functions, that can be applied to the data structure. 2. What is polymorphism? A programming language's ability to process objects differently depending on their data type or class. 3. What is inheritance? Inheritance is a feature that represents the "is a" relationship between different classes. Inheritance allows a class to have the same behavior as another class and extend that behavior to provide special action for specific needs. 4. What is abstraction? The process of picking out (abstracting) common features of objects & procedures. 5. What is encapsulation? The process of combining elements to create a new entity.
2 people like this
• United States
19 Dec 06
OOP, or object-oriented programming is a method of programming that uses a class structure. Each class has its own methods and fields, and you can create an instance of each class called an object. The best way to describe an object is that its like a variable with its own methods and parts of it that you can use. It is a lot more complicated than that as you go into harder programming topics but that is the gist of it. Abstraction is where you specify what a class does, but not how it does it. This lets someone who is using the class to do something in their code know what to expect from the class but does not know the actual implementation of it. If a programmer actually knows how a class is implemented then it can cause problems if they try and use that knowledge to perform a task. Because of abstraction the person who wrote the original class can change the way its implemented but still give the same results and not affect the person using the class. I hope that answers some of your questions.
@raj_ka (431)
• India
19 Feb 11
hi, The concepts of OOPS or object oriented programming is same for all language that is JAVA/C++ etc..I think this article has elobrated everything you want...check it http://www.boddunan.com/programming/28-c-a-c/11657-object-oriented-programming.html HOpe this helps you finding the answers..