the features of oop are:
Functions that operate on the data of an object are tied together in the data structure.
Data is Hidden and cannot be accessed by external functions.
others are :
· Robust
· Multi threaded
· Architecture Neutral
· High Performance
· Distributed
· Dynamic
The key feature is abstraction: you concentrate in identifying the 'objects' that act in your business model, and the relations among objects.
Each object maintains its internal state exposing the 'methods' (actions) that you can call to change the state of the object.
The object itself can relate to other objects just calling the methods the provide the actions needed.
So you can implement a 'car' without the need to understand its internals: you can just 'ask' the car to start (e.g. car->start ()).
Another key feature is inheritance: you can abstract common features and behaviours into more generic objects, from which more detailed objects derive their characteristics.
For example, you can define the concept of 'vehicle' with some common methods (start, stop, ...), and derive from it the car, the bike, the truck, etc.
There is more to say, but this is a top level view of the approach to OO programming.
One of the reasons to write your code in object oriented format is that you can re-use the code you have written in your other programs. Another reason to do this is you can easily read the code you have written and keep it organized.
An object oriented programming language is, well, any programming language that has objects. For example, in Python, an example of an OOPL:
>>> import re
>>> match = re.search('a', 'abc')
>>> match
<_sre.SRE_Match object at 0x1004c3100>
An object is essentially an imaginary "container" of data, and points to the location of your data in memory.
Some of the major features of object oriented programming are:
I personally o not think object oriented programming has any advantage to structured programming. That is not the answer you teacher wants so you must find out what answer your teacher wants to the question.
Object oriented programming contains three characterestics they are
1. Encapsulation
2. Polymorphism
3. Inheritance
Encapsulation is one of the four pillars of object-oriented programming. The other three are inheritance, polymorphism and abstraction.
The 3 essential concepts of Object Oriented Programming are:InheritanceEncapsulation &Polymorphism
The full form of OOP is Object-Oriented Programming.
Just eat a watermellon!
Machine code, assembly language and C are all non-object oriented programming languages. Fortran, COBOL, Pascal and BASIC were originally non-object oriented languages but there are now object-oriented variants of these languages. C++, C# and Java were all designed with object-oriented programming in mind from the outset.
Encapsulation is one of the four pillars of object-oriented programming. The other three are inheritance, polymorphism and abstraction.
Object Oriented Programming
Yes - 'advanced' PHP programming uses Object Oriented Programming (OOP).
The 3 essential concepts of Object Oriented Programming are:InheritanceEncapsulation &Polymorphism
Object oriented concepts are a generalisation of the object oriented principals (encapsulation, inheritance, polymorphism and abstraction) without specifying a particular implementation of those principals. Object oriented programming is the application of those principals through an object oriented programming language.
No. C is not object oriented. C++ is object oriented.
The full form of OOP is Object-Oriented Programming.
Just eat a watermellon!
Edmund W. Faison has written: 'Borland C [plus plus] 4 object-oriented programming' 'Borland C++ 3 object-oriented programming' -- subject(s): Borland C++, C++ (Computer program language), Object-oriented programming (Computer science) 'BorlandC[plus plus] 4.5 object-oriented programming' -- subject(s): Borland C., C., Object-oriented programming (Computer science) 'Borland C++ 3.1 object-oriented programming' -- subject(s): Borland C++, C++ (Computer program language), Object-oriented programming (Computer science)
small talk yes java yes c++ no delphi no etc...
Java is an object oriented programming language. The various object oriented concepts in it are: * Class * Object * Instance * Method * Inheritance * Polymorphism * Abstraction * Encapsulation etc...
You cannot. Class diagrams are only applicable to object oriented programming languages. C is not object oriented, but C++ is.