ооо ол ы ш на 1 - public class MyNumbers{ 2 int ni, n2, n3; 3 4 public MyNumbers (int a, int b, int c) { n1=a; n2=b; 8 n

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

ооо ол ы ш на 1 - public class MyNumbers{ 2 int ni, n2, n3; 3 4 public MyNumbers (int a, int b, int c) { n1=a; n2=b; 8 n

Post by answerhappygod »

 1
1 (94.39 KiB) Viewed 26 times
object oriented programming
 2
2 (94.39 KiB) Viewed 26 times
ооо ол ы ш на 1 - public class MyNumbers{ 2 int ni, n2, n3; 3 4 public MyNumbers (int a, int b, int c) { n1=a; n2=b; 8 n3=C 9 } 10 } 11 - public class MyNumbersOperations 12 13 MyNumber n; 14 public int addition(){...}; public int multiplication(){...}; public int subtraction() {...}; 18 } 19 - public class MyNumbers Test { 20 public static void main(String args[]) { 22 MyNumbers num1 = new MyNumber(2, 3, 4); MyNumbers num2 = new MyNlumber(5, 6, 7); MyNumbers num3 new Mylumber (8, 9, 1); 15 int sum numl.nl + num2.n2 num.n3; System.out.println("Sue 29
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply