![]() It is very simple to explain the concept is to make the member variables of a class private and providing public getter and setter methods. During the construction, only the general states and behaviours are taken, and more specific states and actions are left aside for the implementers.Įncapsulation is an OOPs theory to create and define the restrictions and permissions of an object and its member variable and methods. Object-oriented language is less complex in nature so it is easier to modify, extend and maintain.Ībstraction is an OOPs approach to construct the structure of the real-world objects. Object-oriented language follows the bottom-up programming paradigmĪ procedural language is complex in nature so it is difficult to modify, extend and maintain Procedural language follows a top-down programming paradigm The object-oriented language provides more scope of code reuse The procedural language provides less scope of code reuse Object-oriented language encapsulates the data ![]() Procedural language exposes the data to the entire program. Object-oriented language is based on real-world objects Procedural programming is based on functions
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |