Middle man is a class, module, or component that primarily acts as a mediator or intermediary between other components without adding significant value or functionality of its own
Example 1
ref : class "Doubleroom"
```
class Doubleroom extends Singleroom implements Serializable
{
String name2;
String contact2;
String gender2;
Doubleroom()
{
this.name="";
this.name2="";
}
Doubleroom(String name,String contact,String gender,String name2,String contact2,String gender2)
{
this.name=name;
this.contact=contact;
this.gender=gender;
this.name2=name2;
this.contact2=contact2;
this.gender2=gender2;
}
}
```
The "Doubleroom" class appears to have minimal additional functionality beyond what is inherited from the "Singleroom" class.
Middle man is a class, module, or component that primarily acts as a mediator or intermediary between other components without adding significant value or functionality of its own
Example 1
ref : class "Doubleroom" ``` class Doubleroom extends Singleroom implements Serializable { String name2; String contact2; String gender2; Doubleroom() { this.name=""; this.name2=""; } Doubleroom(String name,String contact,String gender,String name2,String contact2,String gender2) { this.name=name; this.contact=contact; this.gender=gender; this.name2=name2; this.contact2=contact2; this.gender2=gender2; } } ``` The "Doubleroom" class appears to have minimal additional functionality beyond what is inherited from the "Singleroom" class.