Posts
Showing posts from 2015
Apakah maksud "Instantiate" dalam java
- Get link
- Other Apps
In programming, instantiation is the creation of a real instance or particular realization of an abstraction or template such as a class of object s or a computer process . To instantiate is to create such an instance by, for example, defining one particular variation of object within a class, giving it a name, and locating it in some physical place. 1) In object-oriented programming , some writers say that you instantiate a class to create an object , a concrete instance of the class. The object is an executable file that you can run in a computer. 2) In the object-oriented programming language, Java , the object that you instantiate from a class is, confusingly enough, called a class instead of an object. In other words, using Java, you instantiate a class to create a specific class that is also an executable file you can run in a computer. 3) In approaches to data modeling and programming prior to object-oriented programming, one usage of instantiate
Latihan Lab 4(revision java)
- Get link
- Other Apps
Lab 4 latihan class dan method 1. Berikan maksud class 2. Berikan maksud object 3. Berikan maksud method 4. Apakah perbezaan class dan method 5. Buat satu class yang bernama kalkulator, 6. Buat method yang bernama tambah yang dapat menerima 2 variable bertype double Dan method tersebut memulangkan(return hasil tambah bagi 2 nombor tersebut) 7. Dari main import class calculator dan panggil method tambah untuk buat operasi penambahan. Nombor hendaklah diimput dari pengguna. 8. Buat method bernama kirabmi untuk mengira bmi
- Get link
- Other Apps
Ini adalah satu video menarik menerangkan operasi bagi linear queue. Antara kekurangan linear queue ialah pembaziran pada bahagian hadapan queue selepas operasi dequeue.Di mana bahagian hadapan yang kosong selepas operasi dequeue tidak dapat digunakan lagi. Masalah ini dapat diatasi dengan menggunakan circular queue.
video circular queue
- Get link
- Other Apps
What is Circular queue? A circular queue is a linear data structure. It follows FIFO principle. In circular queue, the last node is connected back to the first node to make a circle. Circular linked list fallow the First In First Out principle. Elements are added at the rear end and the elements are deleted at the front end of the queue ( reference: https://www.quora.com/What-is-a-circular-queue ) . rear = (rear+1)%max
Web programming Exercise 1(repost)
- Get link
- Other Apps
Write the program for all the problems below. Save your work in html file, zip all the file and send your works before class dismiss. Create a webpage that prints your name to the screen. Display five different images. Skip two lines between each image. Each image should have a title. Display a table that has 4 rows, a border of size 2, a width of 200, and a height of 200. Display a website that when clicked will link to a search engine of your choice. (should be opened in a new window) Create a registration form as below. Save the file as registrationForm.html. *Submission Guideline Email: nurfadilaakma@gmail.com subject: noUk_exerciseWeb1 put all files in folder, zip and attach into email.