However, there is a big difference between a language that makes OOP possible and one that actively supports it. In fact, it is possible to use object-oriented techniques in any programming language. We can think of an object in standard programming terms as nothing more than a set of variables together with some subroutines for manipulating those variables. To some extent, OOP is just a change in point of view. ![]() The core concept of the object-oriented approach is to break complex problems into smaller objects. Java is an object-oriented programming language. This is supposed to make the design of the program more natural and hence easier to get right and easier to understand. Software objects in the program can represent real or abstract entities in the problem domain. Programming consists of designing a set of objects that somehow model the problem at hand. But at the heart of object-oriented programming, instead of tasks we find objects-entities that have behaviors, that hold information, and that can interact with one another. ![]() Programming then consists of finding a sequence of instructions that will accomplish that task. In the older styles of programming, a programmer who is faced with some problem must identify a computing task that needs to be performed in order to solve the problem. ![]() Object-oriented programming (OOP) represents an attempt to make programs more closely model the way people think about and deal with the world.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |