Posts
perbezaan antara abstract class dan interface class dalam java
- Get link
- X
- Other Apps
abstract Classes Interfaces abstract class can extend only one class or one abstract class at a time interface can extend any number of interfaces at a time abstract class can extend from a class or from an abstract class interface can extend only from an interface abstract class can have both abstract and concrete methods interface can have only abstract methods A class can extend only one abstract class A class can implement any number of interfaces In abstract class keyword ‘abstract’ is mandatory to declare a method as an abstract In an interface keyword ‘abstract’ is optional to declare a method as an abstract abstract class can have protected , public and public abstract methods Interface can have only public abstract methods i.e. by default abstract class can have static, final or static final variab...
Google Chart
- Get link
- X
- Other Apps
Nak buat koding untuk graf? cuba guna Google Chart..Koding yang agak mudah dengan pelbagai jenis graf dan carta yang menarik disediakan oleh google dengan percuma..Dengan hanya menggunakan sedikit koding sahaja, graf anda sudah selesai. ni link ke google chart https://developers.google.com/chart/ https://developers.google.com/chart/ selamat mencuba..
Apakah maksud "Instantiate" dalam java
- Get link
- X
- 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
- X
- 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
- X
- 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.