Answer:
A generalized class used only to create related derived classes
Explanation:
An abstract class is a class which cannot be instantiated on its own. It is defined using an abstract keyword. However, an abstract class can be inherited from and the derived class can actually be instantiated. For example:
abstract class A{
}
class B extends A{
void test(){
}
}
Here class A is an abstract class, while class B inherits from A. Now we can create an instance of class B as follows:
B b = new B();
b.test();
Answer:
1.trees_destroyed_per_hectare = 456/2.47
2. input(no_of_hectares)
3. no_of_trees_destroyed =no_of_hectares * trees_destroyed_per_hectare
4. print(no_of_trees_destroyed)
Explanation:
1.trees_destroyed_per_hectare = 456/2.47 //conversion of tress destroyed per acres to hectare
2. input(no_of_hectares) // get input from user in hectares that how many hectares are destroyed
3. no_of_trees_destroyed =no_of_hectares * trees_destroyed_per_hectare // total number of trees destroyed by fire on given day and given area
4. print(no_of_trees_destroyed)
Answer:
Option (B) is the correct answer of this question.
Explanation:
In the Private access modifier we can access the property and field within the package or class we cannot accessing the member outside the class .
- We use private keyword for declaring the private access modifier.
- In the public access modifier we accessing the property outside the class so it's a incorrect option .
- In the protected access modifier we access the property of class package and subpackage both so it's a incorrect option.
- The default modifier is incorrect it not follow the given scenario so it's incorrect.
Answer:
Hacker
Explanation:
They break password codes to get access to unauthorized data.
Of all the options given, the correct option is D.) Wind. I chose this answer because the three other options given (Coal, Gasoline, and Oil) are fossil fuels that affect our environment. Wind energy does not leave any lasting impact on our environment, and therefore is the cleanest energy resource.
I hope this helps!