To operate the Blended Learning Center(BLC) at optimal level, maintenance will be performed every day at 8:30 AM and at 5:00 PM regularly which can take up to 30 minutes. Please consider scheduling your activity in the BLC platform accordingly.
Assignment 02
Use a dynamic approach to solve the following problems:
# | Questions |
1 | Make a class named Animal. In that class, animals should have a name, kingdom, height, and a method called to make two or three objects of this animal class into your main class. |
2 | Now your job is to make name, kingdom, and height these three variables private. And try to access those variables from the main class by the getter and setter method. |
3 | Imagine You are a Car designer. A Car has some basic properties such as brand, color, model, num of seats, horsepower, and price. So your task is to make an array of 3 Cars and display their information from a method called displayInformation. |
4 | Make a class called Calculator. On Calculator class initial 2 value through Constructor. And make four methods called ' jogKori ' , 'biyogKori', 'gunKori', 'vagKori' which will perform plus, subtract, multiple, and divide operation. Now your task is to create an object of Calculator class, call that method, and print those methods result from the Main class. |
Google Form Submission Link: Click here!!