In programming, separation of concerns is known as coupling. It means that an object cannot directly change or modify the state or behavior of other objects. It defines how closely two objects are connected together. There are two types of coupling, loose coupling, and tight coupling.
Objects that are independent of one another and do not directly modify the state of other objects is called loosely coupled. Loose coupling makes the code more flexible, changeable, and easier to work with.
Objects that depend on other objects and can modify the states of other objects are called tightly coupled. It creates conditions where modifying the code of one object also requires changing the code of other objects. The reuse of code is difficult in tight coupling because we cannot separate the code.
Posted Date:- 2021-09-30 07:01:17
What is a wrapper class in java?
What is a static blank final variable in java?
What is a ternary operator in java?
Difference between constructors and methods in java?
Can Interfaces have a constructor in java?
From a method can we call a constructor directly in java?
In a class which is the default access modifier in java?
What are the problems might be created when you are trying to implement multiple inheritance concept in java?
What does the keyword virtual represented in the method definition?
What is the purpose of a virtual destructor?
How would you describe the difference between an "is-a" and a "has-a" relationship?
How do you differentiate between a class and an object?
Can you use this () and super () both in a constructor?
Why is the constructor not overridden?
Can the constructor be private?
Explain how polymorphism is supported by C++.
How do procedural programming and OOP differ?
What are the different types of constructors?
What are the different types of Polymorphism?
Is an error basically the same as an exception?
Can we overload the main() method in Java also give an example?
Is it possible to overload a constructor?
What are the levels of data abstraction?
What is data abstraction and how can we achieve data abstraction?
What is the difference between a base class and a superclass?
What are the main features of OOPS?
What are the 3 principles of OOP?
What is a pure virtual function?
Can you call the base class method without creating an instance?
When the finalize method is used?
Is Operator overloading supported in Java?
Can you explain base class, subclass, and superclass?
What types of arguments can be used in Java?
What are the languages come under oops concept?
How do you create an instance of an abstract class?
Can you please elaborate on â€˜access specifiersâ€™?
How can data abstraction be accomplished?
What is the difference between new and override?
Name the operators that cannot be overload.
Distinguish between multiple and multi-level inheritances?
What is Coupling in OOP and why it is helpful?