When we are not much more cleared about the implementation the we go for Interface
For examples
Abstract class Vehicle () Vehicle can be Car , truck , motorbike any think
Interface VehicleParts() In above interface we can have the common parts/feature of vehicle like wheel, size ,speed and all these may be different for different type of vehicle .
When we are not much more cleared about the implementation the we go for Interface
For examples
Abstract class Vehicle () Vehicle can be Car , truck , motorbike any think
Interface VehicleParts() In above interface we can have the common parts/feature of vehicle like wheel, size ,speed and all these may be different for different type of vehicle .
2 comments:
When we are not much more cleared about the implementation the we go for Interface
For examples
Abstract class Vehicle ()
Vehicle can be Car , truck , motorbike any think
Interface VehicleParts()
In above interface we can have the common parts/feature of vehicle like wheel, size ,speed and all these may be different for different type of vehicle .
Thanks,
M4MAD
When we are not much more cleared about the implementation the we go for Interface
For examples
Abstract class Vehicle ()
Vehicle can be Car , truck , motorbike any think
Interface VehicleParts()
In above interface we can have the common parts/feature of vehicle like wheel, size ,speed and all these may be different for different type of vehicle .
Thanks,
M4MAD
Post a Comment