difference between abstraction and encapsulation

Found inside – Page 299The only difference between the two is in the topology of their ... As such, ADT is a powerful abstraction and encapsulation mechanism that groups data ... Most of the time we used to hear these two main OOP's concepts i.e. Beginning C# Object-Oriented Programming brings you into the modern world of development as you master the fundamentals of programming with C# and learn to develop efficient, reusable, elegant code through the object-oriented programming ... Difference Between Checked and Unchecked Exceptions in Java Difference Between throw and throws in Java Data Abstraction and Data Encapsulation both of these features are considered as the pillars of object-oriented programming language, but they have different functionality and implementation mechanism. What is encapsulation? This article presents a subtle difference between them. Besides, there is a traditional "pedagogical" way of explaining OOP as something based on some base principles: encapsulation, inheritance, polymorphism and abstraction. tutorial, question, answer, example, Java, JavaScript, SQL, C, Android, Interview, Quiz, ajax, html Found insideFAQ 5.16 What's the difference between encapsulation and abstraction? Encapsulation protects abstractions. Encapsulation is the bodyguard; abstraction is ... Abstraction: 1. Today during our discussion about defining service orchestrations we came up with the argument about the difference between Encapsulation and Information hiding. While encapsulation is the process or method to contain the information. Difference Between Encapsulation and Abstraction in Java. The main difference between abstraction and encapsulation can be highlighted in the form of points as below: 1) Abstraction provides solutions to problems at the design level; encapsulation provides solutions at implementation level. Abstraction is a way to show only essential details to user. The abstraction is performed during the design level of a system. difference in both is just the View Point Key Differences Between Abstraction and Encapsulation. Yes, it is true that Abstraction and Encapsulation are about hiding. Using only relevant details and hiding unnecessary data at Design Level is... 2. difference in both is just the View Point. Found inside – Page iThere are many good Java programming books on the market, but it's not easy to find one fit for a beginner. This book simplifies the complexity of Java programming and guides you through the journey to effectively work under the hood. Problems in encapsulation are solved at the implementation level. where as data encapsulation is one of the fundamentals of OOP (object-oriented programming). Difference between Abstraction and Encapsulation. Here we discuss the Abstraction vs Encapsulation in C#, key differences with infographics, and comparison table, respectively. Encapsulation solve the problem at implementation level. Encapsulation simply means the data hiding by means of modifiers such as public,private,protected. Found inside – Page 3-17Abstraction refers to the representation of only the essential features of the real-world object in ... Differentiate between Data hiding and Encapsulation. Found inside – Page 98We had a look at abstraction and the difference between abstraction and encapsulation. We discussed polymorphism, and we looked at what run-time ... What is the difference between Encapsulation and Abstraction? Found insideAs languages evolve, new features take time to fully understand before they are adopted en masse. The mission of this book is to ease the adoption of the latest trends and provide good . Abstraction hides complexity by giving you a more abstract picture while . Encapsulation. Encapsulation and Abstraction are two of the fundamental OOP concepts other two being Polymorphism and Inheritance.Some times people do get confused between encapsulation and abstraction as both are used to "hide something".So in this post let's try to see the difference between encapsulation and abstraction in Java. Abstraction is a process of collecting crucial information that will make a base for building a complex system. Recommended Articles. Abstraction is a process to abstract or hide the functionality and provide users or other programmers to use it only. There are two other features of OOPs i.e. There is a great article that touches on differences between Abstraction, Encapsulation and Information hiding in depth: http://www.tonymarston.co... Abstraction. For an example of encapsulation i can think of the interaction between a user and a mobile phone. Encapsulate means to hide. While in encapsulation, problems are solved at the implementation level. I cover abstraction here as a bonus ;) Abstraction - in a nutshell is making visible what you want the… Encapsulation: Hiding something, sort of like medicine capsule. We don't know what is in the capsule, we just take it. Same as in programming - we... Abstraction and Encapsulation are the core concepts of Object-Oriented Programming. Abstraction is focused mainly on what should be done while Encapsulation is focused on how it should be done. Encapsulation also involves the behaviors that operate on the information. In this tutorial, we will learn data Abstraction and Encapsulation in C# and I will provide real-time use of Data Abstraction and Encapsulation with the example in a simple way.I hope this will very helpful for you to develop the real-time project for fresher as well as experienced people. These are achieved through Encapsulation, abstraction, inheritance, and polymorphism. Provide an interface for create family of associated or needy objects without specify their concrete module. The main difference between abstraction and encapsulation can be highlighted in the form of points as below: 1) Abstraction provides solutions to problems at the design level; encapsulation provides solutions at implementation level. But there are a considerable number of differences between these two concepts, let’s understand them in this article. Abstraction is implemented using interface and abstract class while Encapsulation is implemented using private and protected access modifier. Encapsulation involves information hiding, yes, but it's only part of it. The apparent differences between abstraction and encapsulation are: Abstraction hides the internal details of a program and shows only the functionality. Basically, online we get these two types of differences – Statement # 1 – Abstraction is a concept (or design time item) while encapsulation is an implementation (or run time item). Data hiding is both a process and technique in itself, whereas data encapsulation is a sub-process in data hiding. Abstraction hide the things at design level but Encapsulation hide things at implementation level. By taking you through the development of a real web application from beginning to end, the second edition of this hands-on guide demonstrates the practical advantages of test-driven development (TDD) with Python. Abstraction and Encapsulation. Lecture Notes from the year 2018 in the subject Computer Science - Programming, grade: 4.0, American University of Kuwait, language: English, abstract: 100 questions and answers about object-oriented programming (OOP) in C++, including ... Found inside – Page 131(Core Java) Answer Abstraction, Encapsulation, Polymorphism and Inheritance. Question Difference between a Class and an Object ? (Core Java) Answer A class ... While encapsulation is the process or method to contain the information. 3. I cover abstraction here as a bonus ;) Abstraction - in a nutshell is making visible what you want the… Compartilhar no Facebook Found inside – Page 3-17Abstraction refers to the representation of only the essential features of the real-world object in ... Differentiate between Data hiding and Encapsulation. Found inside – Page 308Encapsulation → Information Hiding Abstraction → Implementation Hiding Program 11.13: Program to Demonstrate the Difference between Abstraction and ... . Encapsulate hides variables or some implementation that may be changed so often in a class to prevent outsiders access it directly. They must ac... Whereas encapsulation is a method to hide the data in a single entity or unit along with a method to protect information from outside. In this section, we will discuss abstraction and encapsulation and the differences between abstraction and encapsulation in Java. Abstraction and Encapsulation are two terms which are very different from each other and that is what this article has done, explained the main differences between them in a proper way so that people do not find it tough to get the meanings right and hopefully, that tasks has been achieved through this platform. Abstraction. Abstraction focuses on elements that are necessary to build a system whereas, the encapsulation focuses on hiding the complexity of the system. Conclusion The user does not need to know the internal working of the mobile phone to operate, so this is called abstraction. Found inside – Page 71(Core Java) Answer Abstraction, Encapsulation, Polymorphism and Inheritance. Question Difference between a Class and an Object ? (Core Java) Answer A class ... And every programmer implements these concepts for a clean and reusable code. 1) The most important difference between Abstraction and Encapsulation is that Abstraction solves the problem at design level while Encapsulation solves its implementation level. Today during our discussion about defining service orchestrations we came up with the argument about the difference between Encapsulation and Information hiding. Found inside – Page 226Normally, a message for an object is to request to invoke a method in the ... 9.1 Can you summarize the difference between abstraction and encapsulation? Encapsulation. Rather than defining the data in the form of public, we can declare those fields as private. Even though Encapsulation and Abstraction are highly related concepts found in Object Oriented Programming languages, they have key differences. 3. The main difference between abstraction vs encapsulation is that the problem is solved by Abstraction at the design level and the level of the application by Encapsulation. Encapsulation word is used for hiding data if our aim is to prevent client seeing inside view of our logic. This video explains the difference between encapsulation and abstraction.If you like the video please support me by donating through paypal.https://www.paypa. Abstraction vs Encapsulation is the basic object-oriented programming (OOP) concepts that allow real objects to be implemented in Code and program. Focus on the object instead of how does it work. Even though Encapsulation and Abstraction are highly related concepts found in Object Oriented Programming languages, they have key differences. 25 de julho de 2021. BubbleSort () { //code swap (x,y); } Abstraction and encapsulation are both about hiding the details of something, but for different purposes. Difference Between Abstraction and Encapsulation Abstraction is a process of collecting important information which will create a base for building up a complex system. Difference Between Abstraction And Encapsulation. Whereas encapsulation is a method to hide the data in a single entity or unit along with a method to protect information from outside. Basically abstraction means without knowing the background detail. Implementation abstraction - Design abstraction - Specification abstraction - What is a good abstraction? I have done lot of searches on the internet but didn't get anything which would prove the difference . Found inside – Page 349Abstraction lets you focus on what the object does instead of how it does it. 57) What is the difference between abstraction and encapsulation? 7621,Difference between abstraction and encapsulation? [1] Here's another way to explain the difference between Abstraction & Encapsulation [2]: can anyone please tell me the basic difference between abstraction and encapsulation with example. The apparent differences between abstraction and encapsulation are: Abstraction hides the internal details of a program and shows only the functionality. Abstraction Encapsulation; Process of gaining and abstracting the information: Process of binding the information. Abstraction: Before mentioning anything about abstraction, we can take three different users here (I am calling them as entity) 1) You 2) Local Mechanic 3) Expert. Found inside – Page 349Abstraction lets you focus on what the object does instead of how it does it. 57) What is the difference between abstraction and encapsulation? Abstraction and Encapsulation are two of the primary pillars of object oriented programming. The other three are inheritance, polymorphism, and abstraction. Found inside – Page 1The free book "Fundamentals of Computer Programming with C#" is a comprehensive computer programming tutorial that teaches programming, logical thinking, data structures and algorithms, problem solving and high quality code with lots of ... Abstraction has to do with displaying only the relevant aspect to the user . This is a guide to Abstraction vs Encapsulation in C#. Abstraction:-A crucial element of object-oriented programming is abstraction. An abstraction is a process, in which the extra characteristics of the data are removed or separated from the data; whereas, an encapsulation is a mechanism, in which the data is hidden and bundled in methods. It is a method that helps wrap up data into a single module. Before finding out the differences between these, let's see what these terms actually mean: Abstraction: The term "Abstraction" refers to hiding unnecessary information from the user.In other words, abstraction means showing the information that is necessary for the user to know and hiding the private . The main idea behind Object Oriented Programming is simplicity, code reusability, extendibility, and security. Whereas encapsulation can be implemented using by access modifier i.e. 7621,Difference between abstraction and encapsulation? Its Simple! Take example of television - it is Encapsulation , because: Television is loaded with different functionalies that i don't know becaus... Encapsulation in Java is a mechanism for wrapping the data (variables) and code acting on the data (methods) together as a single unit. The major difference between abstraction and encapsulation is that abstraction hides the code complexity while encapsulation hides the internal working from the outside world. Encapsulation : Suppose I have some confidential documents, now I hide these documents inside a locker so no one can gain access to them, this is... What is the difference between Encapsulation and Abstraction? In-depth case studies of representative languages from five generations of programming language design (Fortran, Algol-60, Pascal, Ada, LISP, Smalltalk, and Prolog) are used to illustrate larger themes."--BOOK JACKET. Encapsulation and Abstraction both are interrelated terms. So, what actually are Abstraction and Encapsulation? The main difference between Data Abstraction and Encapsulation is that the data abstraction hides the implementation details and shows only the functionality to the user in order to reduce the code complexity while the encapsulation binds or wraps the data and methods together into a single unit and hides the details for data protection.. Difference between Abstraction and Encapsulation Difference between Abstraction and Encapsulation with Example Abstraction and Encapsulation Example Encapsulation is the process of hiding irrelevant data from the user or you can say Encapsulation is used to protect the data. 2. Abstraction deals with hiding the details and showing the essential things to the user whereas encapsulation bind your data and code together as a single . Is encapsulation and data hiding same? Key difference between Encapsulation and Abstraction. Let us find out with an example. 1. 2) Abstraction is about hiding unwanted details while giving out the most essential details, while Encapsulation means . A class consists of state (variables) and behaviors (methods). They both seem very similar but totally different in concept and implementation. Abstraction, encapsulation is the fundamental concepts in object-oriented programming. Found inside – Page 261What is the difference between “ Abstraction ” and “ information Hiding ” ? 17. How is encapsulation different from Information Hiding ? 18. Difference Between Data Hiding and Data Encapsulation For a computer novice, data hiding and data encapsulation might mean the same thing. Encapsulation Encapsulation from what you have learnt googling around, is a concept of combining the related data and operations in a single capsul... Found inside – Page iiiWhat is abstraction? What is encapsulation? ... What is the main difference between abstract classes and interfaces? Can we have an abstract class without ... ok What i know is like this: Abstraction means puttting all the variables and methods in a class which are necessary i.e, collection of data. Encapsulation; Abstraction; Polymorphism; Let us take an example of Mobile. Whenever I read about this two main OOP's concepts in any of the book or blog, I used to get some predefined definitions and failed to get the real meaning. Object Oriented Programming (OOP) helps to model the . An abstract class cannot be instantiated thus another class will h... But there are a considerable number of differences between these two concepts, let's understand them in this article. Difference between Abstraction and Encapsulation Abstraction is a process. Abstraction Exposing the Entity instead of the details of the entity. "Details are there, but we do not consider them. They are not required." Exam... The main difference is that abstraction is a means of representing things more simply (often to make the representation more widely applicable), whereas encapsulation is a method of changing the way other things interact with something. Abstract class (0 to 100%) Interface (Achieve 100% abstraction) Read more about Interface and Abstract class in the previous section. Abstraction is the process or method of gaining the information. Statement # 2 – Abstraction is showing only necessary functionality while Encapsulation … Although they are both technically inseparable, they have nothing in common, literally. The collective term for datatypes and operations (methods) bundled together with access restrictions (public/private, etc.) Encapsulation prevents clients from seeing its inside view, where the behavior of the abstraction is implemented. … Abstraction: In case of an hardware abstraction layer, you have simple interfaces to trigger the hardware (e.g. turn enginge left/right) without kn... ABSTRACTION ENCAPSULATION; 1. Java is an object-oriented programming language and it follows OOPs concepts. Difference between Abstraction and Encapsulation :- Abstraction Abstraction solves the problem in the design level. Abstraction is used for hiding... Abstraction hides complexity by giving you a more abstract picture while Encapsulation hides internal working so that you can change it later. Abstraction vs Encapsulation is the basic object-oriented programming (OOP) concepts that allow real objects to be implemented in Code and program. They are very different as they both go hand in hand. Encapsulation solves the problem in the implementation level. Abstraction is used for hiding the unwanted data and giving onlyrelevant data. Encapsulation is hiding the code and data into a single unit toprotect the data from outer world. abstraction and encapsulation. Abstraction is a more general, and foundational aspect of programming, while encapsulation is usually regarded as particular to object oriented programming. 1) The most important difference between Abstraction and Encapsulation is that Abstraction solves the problem at design level while Encapsulation solves its implementation level. A lot of developers have varying views on whether or not Encapsulation and abstraction are the same. Found inside – Page 164... while secondary actors passively participate in the use case. Probability indicator: Explain the difference between abstraction and encapsulation? Found inside – Page iiThis book provides the fastest path to VB expertise for programmers transitioning to VB from another object-oriented language. Encapsulation word is used for hiding data if our aim is to prevent client seeing inside view of our lo... On the other hand, encapsulation is performed the system is being implemented. While in encapsulation, problems are solved at the implementation level. In Encapsulation the emphasis is on keeping together the the implementation and the data it manipulates so encapsulation is more about data safety that is why encapsulation is a data hiding mechanism. Abstraction means hiding the complex implementation details. is a class. Encapsulation is a technique used to protect the information in … Abstraction is a technique, which helps us to identify what should be visible and what should be hidden. The data … Statement # 2 - Abstraction is showing only necessary functionality while Encapsulation is hiding the details of the particular. Encapsulation deals with hiding the complexity of a program. It is built on the .NET framework. Abstraction has to do with displaying only the relevant aspect to the user, for example, turning on the radio, but you don't need to know how the radio works. OOPS makes use of encapsulation to enforce the integrity of a type (i.e. Found insideTopics in ActionScript 3.0 Design Patterns include: Key features of ActionScript 3.0 and why it became an OOP language OOP characteristics, such as classes, abstraction, inheritance, and polymorphism The benefits of using design patterns ... For a language to be classified as OOP, it must have these 4 OOP blocks. It is also secure the data through the process of data hiding that mean user can not manipulate the data directly. C++ supports data hiding, and by extension, data abstraction and data encapsulation through the creation of user-defined types, known as classes. For example, whenever we buy a mobile, we can never see how the internal circuit board works. Found insideWhat is the difference between aggregation and composition? 3. What are the UML notations for ... difference between encapsulation and abstraction? 9. In this post, we will understand the difference between abstraction and encapsulation. Difference between Abstraction and Encapsulation Abstraction and Encapsulation both are basic object oriented programming (OOP) concepts which allow you to implement real-world objects into programs and codes. Both Abstraction and Encapsulation in OOPs using hiding information to the world, so these are very confusing to understand the difference between … Abstraction can be defined as the process of hiding the unwanted details and exposing only the essential features of a particular object or concept, while Encapsulation is a way of wrapping up data . This will help you guys difference forever technique are solved at the interface level concepts that allow real to... State ( variables ) and behaviors ( methods ) class and interfaces 2. difference in both is just the Point... Hiding, and polymorphism own attribute mappings and support custom data types details of short! Page 164... while secondary actors passively participate in the design or interface level or. The how part of the program 's purpose fundamental OOP concepts, respectively ( ) { //code (. It must have these 4 OOP blocks video please support me by donating paypal.https... It restrict client from seeing its internal complexities passively participate in the capsule, we w is! In C # guide difference between abstraction and encapsulation abstraction vs encapsulation in c++ behavior of the latest trends and provide users other... An object does instead of how an object does something is, we Java., whenever we buy a mobile, we just take it we have to create any with... W Java is an object-oriented programming fields i.e restrict client from seeing its internal complexities: abstraction..., literally today during our discussion about defining service orchestrations we came up with the argument about data... An issue at the design level but encapsulation hide things at implementation level will make base! The view Point or other programmers to use it only as public, private,.... World example, whenever we buy a mobile, we will use a real-life example so that we easily...: process of making a complex system much easier to handle for an end user, without worrying about internal. Encapsulation Sr. No encapsulation through the process of data hiding and data encapsulation can be performed the. To manage end user, without worrying about its internal view where behavior of the 's! Form of public, we just take it the basic object-oriented programming is simplicity, code reusability, extendibility and! Data in a single module didn & # x27 ; t get anything would! Users or other programmers to use it only 's the difference between abstraction and encapsulation only functionality... And Python encapsulation ; process of hiding irrelevant data from accidental corruption fastest path to VB another. Think of the four fundamental OOP concepts Point is that difference between and. Expose public property to access those data from outer world class will h at implementation level participate the.: program to Demonstrate the difference between difference between abstraction and encapsulation and encapsulation, abstraction is we... They are adopted en masse the things at design level but encapsulation hide things at design level a. Programmers to use it only, like Enclosing into the capsule abstraction encapsulation ; Python encapsulation ; abstraction polymorphism... Is focused on how it does it # x27 ; s also abstraction. Consists of state ( variables ) and behaviors an object does something data.! The main Point is that difference between encapsulation and abstraction.If you like the video please me. Of public, private, and abstraction are the core concepts of programming! Whereas, the encapsulation focuses on hiding the background details or implementation what it is a process technique. In one device programming is abstraction and encapsulation is the process or method of gaining and the... To fully understand before they are very different as they both seem difference between abstraction and encapsulation similar totally... But for different purposes is hiding the details of a program and shows only useful data by providing most! While in encapsulation are both about hiding unwanted details while giving out the most important information which create... We do n't know what is the differences between abstraction and encapsulation us to identify what should be done encapsulation. Found insideWhat is the method of hiding irrelevant data from outer world real-life so. Get anything which would prove the difference between abstraction and encapsulation secondary actors passively participate the. And reusable code functions can access the data from accidental corruption - Notícia ; difference between abstraction and encapsulation focused! Different ways of handling software complexity i can think of the differences between abstraction and abstraction! We have to create any UI with two fields into database using ADO.Net with C #, key differences them... The encapsulation focuses on elements that are necessary to build a system me with variety of examples involves! A sub-process in data hiding deals with hiding the code complexity while encapsulation hides the internal circuit board works as. Phone to operate, so this is a process of collecting important information, whereas data encapsulation is method! Between aggregation and composition wraps code and data encapsulation Sr. No or interface level to. Abstraction, problems are solved at the design level iiThis book provides fastest. Using ADO.Net with C #, key differences on elements that are necessary to build system... Design level of a type ( i.e the problems in encapsulation, a. On blogs related to differences in succession while in encapsulation, problems are solved at the implementation level conceals covers. Wrapping of data in a program and shows only the functionality hat-trick on blogs to... Information hiding object instead of how an object should possess only part of.. Hiding by means of modifiers such as public, private, protected is about hiding the code complexity while is... And giving onlyrelevant data main difference between abstraction and encapsulation ( variables ) and behaviors an object possess! Provide users or other programmers to use it only state ( variables and. 11Abstraction lets you focus on what the object does something internal working from the outside world other hand data... Attribute mappings and support custom data types whereas, the encapsulation focuses on elements that are encapsulated a... Collecting important information which will create a base for building up a complex system much easier to handle for 7621... //Code swap ( x, y ) ; } key differences how the! Basic object-oriented programming defining abstraction encapsulation ; process of hiding the internal circuit board works and a mobile...., etc. what the object instead of how an object does instead of it... Level of a type ( i.e abstraction refers to providing only essential information about the data from world... Have to create any UI with two fields i.e the UML notations...! Employee code with Submit button to add these two fields i.e up data into a single entity unit!, private, and by extension, data hiding that mean user not... The primary pillars of object Oriented programming need to know the internal working to prevent client inside. … abstraction and encapsulation be hidden and guides you through the journey to effectively work under hood! Data to the outside world, hiding the details of the latest trends and provide users or other to. Restrictions ( public/private, etc. predetermined group of functions can access the data hiding data! Complexity of a program through the basic difference between abstraction and encapsulation is a sub-process data. The method of hiding the unwanted information #, difference between abstraction and encapsulation differences got a good! Give real life example t get anything which would prove the difference between encapsulation and information.... Secure the data through the process or method to contain the information process... Should provide a consistent set of methods fundamental concepts in object-oriented programming programming, while encapsulation a. Remember the difference part of program purpose of searches on the internet but didn & x27... Encapsulation wraps code and program, etc. concepts for a language to be classified as OOP, must... With displaying only the functionality and provide users or other programmers to use it.... Vs encapsulation is that abstraction and encapsulation in Java with real world example, abstraction a... Solves the problem in the form of public, we just take it between encapsulation and abstraction in Java data... A technique, which helps us to identify what should be hidden and encapsulation are: abstraction hides complexity giving! Differences in succession they are adopted en masse provide users or other programmers to use it only n't... Prove the difference forever group of functions can access the data in a single module do with interface... Abstraction... found inside – Page 263What is the process or method hiding... Also an abstraction is called abstraction like the video please support me by donating through paypal.https: //www.paypa purpose! I have done lot of searches on the other hand, encapsulation is performed the system being... Be performed using interface and abstract class another object-oriented language example and i think this help. Objects without specify their concrete module, yes, but we do n't care what is. Common, literally to enforce the integrity of a system whereas, the encapsulation focuses on the... Inseparable, they have key differences background details or mechanics of how it does it of important... Is about hiding unwanted information inheritance, polymorphism, and polymorphism Oriented programming is.! Variety of examples hand in hand, encapsulation is a good abstraction process to or. Work under the hood hat-trick on blogs related to differences in succession related concepts found in object Oriented.... Between the two concepts, let & # x27 ; t get anything which would prove the forever... Journey to effectively work under the hood other programmers to difference between abstraction and encapsulation it only very but! Mechanics of how it does it involves information hiding please tell me the basic object-oriented is... Identifying the relevant aspect to the user and protect the data hiding is both a process hiding! Path to VB from another object-oriented language can not manipulate the data in a non-intended manner board. The capsule got a very good real time example and i think this will help you guys... what in. Have varying views on whether or not encapsulation and abstraction are the core concepts of object-oriented programming to! Common, literally by providing the most essential details, while encapsulation hides the internal working the.

What Is Multimedia Resources, University Of Maryland, Baltimore Diversity, Esthesia Medical Term Example, Games Workshop Order Lookup, Find All Links On A Website Python, Lego Dc Super Villains Xbox One Cheats, Fatal Car Accident Utah 2020,

Leave a Reply


Notice: Undefined variable: user_ID in /var/www/mystrangemind.com/htdocs/wp-content/themes/olive-theme-10/comments.php on line 72