![anessia83](/avatars/22665.jpg)
anessia83
30.10.2019 •
Computers and Technology
Before printing a document, you should perform a (blank) and save the document
Solved
Show answers
More tips
- F Family and Home Do You Really Need a Playpen for Your Child?...
- F Food and Cooking Do Aphrodisiacs Really Work? Separating Fact from Fiction...
- C Computers and Internet Log-in: what is it and why do you need it?...
- S Style and Beauty Secrets of Tying a Pareo: 5 Ways...
- 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?...
- S Style and Beauty How to Make Your Lips Fuller? Ideas and Tips for Beautiful Lips...
Answers on questions: Computers and Technology
- S Social Studies The midwestern region of the united states is often referred to as the heartland because it is the agricultural center of the nation. what have technological advances such...
- H History Match each food item with a culture Japan Kenya Italy...
- B Business A customer bought a $1,000 par convertible subordinated debenture at par, convertible into common at $31.25 per share. If the bond s market price increases by 20%, the conversion...
Ответ:
Ответ:
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());}}