I need it in javascript please Part A 1 Look up the words

I need it in ( javascript ) please!

Part A 1. Look up the words “abstract” and “abstraction.” What do they each mean? Use each in a sentence. What is the difference between these words? 2. Describe an abstraction of a person. Explain what characteristics you are including, and some that you are leaving out (abstracting away). 3. Look up the term “API,” explain it and use it in a sentence. 4. Look up the terms “object” and “class” and find their definitions from the perspective of object-oriented programming. Explain each, use it in a sentence, and describe the difference between them. 5. What is a “method” of an object or class? Look it up, explain it and use it in a sentence. 5. Suppose you have a cars class. Suppose that you make an API for this class consisting of “get” and “set” methods for its member variables, except not for its CIAcode member variable. How does this API represent an abstraction of the cars class? Part B Go through the objects lesson in https://www.codecademy.com/tracks/javascript, called “Building an Address Book.” It is currently in the “Objects I” unit, more specifically at https://www.codecademy.com/courses/building-an-address-book/0/1. However, codecademy is reorganizing their site on Oct. 6, they say. If due to this reorganization you can’t find it, please let me know ASAP so we can straighten things out! Hand in your address book code.

Solution

1.\"abstract\" is a keyword which is used to make a class abstract.abstract class is a class which require subclasses to provide implementations for its methods

Abstraction

Abstraction is one of the concepts of OOP which refers to process of hiding the implementation details from the user

User will have information on what the object does instead of how it does it.In Java it is achieved through abstract keyword discussed above

For example when we need to boil water in a kettle,we just need to know that when we click the button water will eventually start boiling.everything underneath it is not needed

2.Abstraction. Of a person class.Let us consider only a few fields that a Person has name,age,and and an unique Id.The methods are needed to input name age n I\'d.also a method to display them.i n main person is called by creating objects.only when an object is created a particular listing at person comes into existence

3. API,Application Programming interface is a collection of prewritten packages,classes and interfaces with their respective fields,methods and constructors.

4.Class is an aggregate of fields and methods.it is an extensible program code template for creating objects.It describe the content of the objects that belongs to it

Object is an instance to a class.

Class does not have physical existence.but the object has physical existence.

For example animal is a class and dog is n object to it.Class means category.Object refer the item in the category

5.method refers to the implementation function.It is collection of statemens to perform a particular operation

The elements required to define or declare a m ethod is return type,name,pair of parentheses(),with or without arguments and a body between braces{}

I need it in ( javascript ) please! Part A 1. Look up the words “abstract” and “abstraction.” What do they each mean? Use each in a sentence. What is the differ

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site