jerria73
26.11.2019 •
Computers and Technology
Shouldn't users be allowed to delete their answers in
[i accidentally gave wrong answer and now i want to delete it or edit it. but i can't because it won't allow me to.]
Solved
Show answers
More tips
- F Food and Cooking 10 Ideas for a Wedding Anniversary Gift...
- H Health and Medicine Hangover: How to Get Rid of It Quickly?...
- S Style and Beauty How to Choose the Right Fur Coat and Avoid Regrets?...
- C Computers and Internet How to Create a Folder on Your iPhone?...
- G Goods and services How to sew a ribbon: Tips for beginners...
- F Food and Cooking How to Make Mayonnaise at Home? Secrets of Homemade Mayonnaise...
- C Computers and Internet Which Phone is Best for Internet Surfing?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
Answers on questions: Computers and Technology
- C Computers and Technology Design a notice for TESAZ games?...
- C Computers and Technology Please have a look at the screenshot below...
- B Business The annual inflation rate is expected to be 5 percent over the next 3 years. Juan plans to take out a 3-year loan to purchase an automobile. If Juan decides not...
- M Mathematics Can someone please answer these two questions...
- B Biology Which of the following types of genetic drift is often used by humans to isolate specific characteristics so that they can then be eliminated? A)genetic bottleneck...
- E English Please help me answer in own word and based off the reading The letter to the Romans describes “degrading passions.” How are they degrading? Our discussion of naturalism...
- M Mathematics Convert: 76 ounces = pounds ounces...
- S Social Studies Why has it been difficult to stop the flow of conflict dimonds?...
- H History How many countries are involved in manufacturing/trade in Africa?...
- H History As rivalidades entre os países imperialistas foi uma das principais razões de qual acontecimento?...
Ответ:
abstract class Mark //Creating an Abstract class{
abstract double getPercentage();}
class A extends Mark{
double result;
A( int val1, int val2, int val3){
result=(val1+val2+val3)/3;}
double getPercentage(){
return result;}}
class B extends Mark{
double result;
B(int val1, int val2, int val3, int val4){
result=(val1+val2+val3+val4)/4;}
double getPercentage(){
return result;}}
class Main{
public static void main(String args[]){
//class A Object
Mark obj_1=new A(10,20,30);
System.out.println(obj_1.getPercentage());
//class B Object
Mark obj_2=new B(10,20,38,46);
System.out.println(obj_2.getPercentage());}}