Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace WindowsFormsApplication6
- {
- class tampil : printer, monitor
- {
- public string cetakPrinter(string kertas, int jumlah)
- {
- string tampilkan;
- tampilkan = "dicetak di kertas ukuran " + kertas + " sejumlah " + jumlah.ToString() + " Lembar";
- return tampilkan;
- }
- public string tampilMonitor(string resolusi)
- {
- string tampilkan;
- tampilkan = "ditampilkan di monitor dengan resolusi " + resolusi;
- return tampilkan;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement