Why we use method o…
 
Notifications
Clear all

Why we use method overriding?

3 Posts
2 Users
0 Likes
152 Views
0
Topic starter

Why we use method overriding?

3 Answers
0

The ability of a subclass to override a method allows a class to inherit from a superclass whose behavior is “close enough” and then to modify behavior as needed. The overriding method has the same name, number and type of parameters, and return type as the method that it overrides.

0

The session layer creates communication channels, called sessions, between devices. It is responsible for opening sessions, ensuring they remain open and functional while data is being transferred, and closing them when communication ends.

0

The ability of a subclass to override a method allows a class to inherit from a superclass whose behavior is “close enough” and then to modify behavior as needed. The overriding method has the same name, number and type of parameters, and return type as the method that it overrides.

Share: