--%>

Explain Coupling

Coupling: Coupling occurs whenever classes are aware of each of other as their instances should interact. The linkage between two classes which might be either weak or strong. Stronger coupling occurs whenever one class has a thorough knowledge of the internal implementation of the other, and is written to take benefit of that knowledge. Therefore anything that has the potential to decrease the amount of inside knowledge will tend to weaken the coupling. Therefore, information hiding and encapsulation. The Java's visibility levels: private, package, protected, public - progressively expose detail to other classes, and therefore raise the potential for stronger coupling. Interfaces are one way to decrease to reduce coupling - as you interact with a class through an abstract definition, instead of a concrete implementation.

   Related Questions in Programming Languages

  • Q : What is an Initializer Initializer : A

    Initializer: A block stated at the outermost level of a class - identical to a method devoid of a header. The initializer blocks are executed, in order, whenever an instance is formed. They are executed prior to the constructor of the defining class,

  • Q : What are the uses of microcontroller

    What are the uses of microcontroller?

  • Q : Describe Timers Timers: While time

    Timers: While time values usually cannot be reduced in the target system, their usage can be encapsulated as an abstraction which can be replaced easily (e.g., by a non-deterministic choice) during model checking.

  • Q : Define Delegation Delegation : The

    Delegation: The procedure by which an object passes on a message has received to a sub-ordinate object. When inheritance is not accessible in a programming language, then delegation is the most viable option for ignoring code duplication and promoting

  • Q : Grep command Specify the usage of the

    Specify the usage of the “grep” command?

  • Q : How can I check while a web page

    How can I check while a web page contains exact text?

  • Q : Problem on Gaussian Matlab function

    Solve the system Ax = b, with using the given Matlab function gauss (it cal

  • Q : Explain Constructor Constructor : A

    Constructor: A constructor is automatically called whenever an instance of its class is formed. A constructor always has similar name as its class, and encompass no return type. For example: public

  • Q : Define the term Pixel Define the term

    Define the term Pixel: It is a `picture element' - usually a colored dot on a screen.

  • Q : Explain Hot spot Hot spot : This is an

    Hot spot: This is an area in an image map with a specific significance. A program usually monitors movements of the mouse, and reacts according to the actions related with the hot spots over which it passes. This may comprise displaying various status