![]() ![]() ![]() Object properties can be any of the three primitive data types, or any of the abstract data types, such as another object. If an attribute contains a function, it is considered to be a method of the object, otherwise the attribute is considered a property. Polymorphism − the capability to write one function or method that works in a variety of different ways. Inheritance − the capability of a class to rely upon another class (or number of classes) for some of its properties and methods. A programming language can be called object-oriented if it provides four basic capabilities to developers −Įncapsulation − the capability to store related information, whether data or methods, together in an object.Īggregation − the capability to store one object inside another object. JavaScript is an Object Oriented Programming (OOP) language.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |