Do Pilots Have Their Own Bathroom

Most airplanes don t have bathrooms only toilets.
Do pilots have their own bathroom. Some stops only have porta potties which are just as bad or worse than dirty bathrooms. Depending on the plane. As for toilets others have already answered crew uses the same as passengers.
If they are on a long cross country flight. No we don t flight deck is not big enough to fit one. The small sleeping area typically contains a lie flat.
Normally the closest one to the flight deck unless this one is not operative which may happen sometimes. The cabins are usually located behind the cockpit and above first class. I was just on a 9 hour flight from europe in first class where i could see the cockpit door and it never once opened.
Nowadays with hyper secure flights where the cockpit must be locked and sealed what happens if the pilot has to use the bathroom. These nooks can only be accessed by climbing a hidden ladder and the private bedrooms have their own bathroom and occasionally a tv. How do pilots pee.
Those bathrooms have showers no bath tubs and can only be used by the paying first class passengers. Unfortunately truck stops don t always have the most sanitary bathrooms. Usually pilots can work in naps each numbering a couple hours but it depends on our route of flight where our refuelings are place along that route and where our weapons activity is polidor.
For smaller general aviation airplanes the pilot ussually just holds it until they can land. Pilots have resting cabins where they can sleep on long haul flights. Maybe this is a dumb question but it occurred to me on my flight today.
The only aircraft that to my knowledge has bathrooms is emirates airways airbus 380 in their first class suites. That means that truckers have to do their business just like any other driver at rest stops and truck stops. For the rest the pilots use the same lavatory as the first class passengers.
As far as larger planes go most have a bathroom on board. Every plane is different but some larger aircrafts are equipped with secret sleeping quarters that are located directly over the first class cabin.