- 7
Fill in the blanks to call the method "hello" from main: public static void main(String[ ] args) { ; } static void hell
Fill in the blanks to call the method "hello" from main: public static void main(String[ ] args) { ; } static void hello() { System.out.println("hi"); }
14 odpowiedzi
+ 3
Where is the blank? I cant see...
Is this what you mean?
class Program {
    public static void main(String[ ] args) {
   
     hello();
    }
    static void hello() {
        System.out.println("hi");
    }
}
+ 2
question: Fill in the blanks to declare a ''Person'' class with a ''sayHello()'' pure virtual function and override it in the derived ''Student'' class.
answer: class Person {
public:
 
  
virtual
 
 void sayHello() 
  
=
 
 0;
};
class Student : 
  
public
 
 Person {
public:
 
  
void
 
 sayHello() { 
   cout << "Student says hello"; }
};
Unlock
  
Hint
+ 1
class Program {
    public static void main(String[ ] args) {
   
     hello();
    }
    static void hello() {
        System.out.println("hi");
    }
}
0
Fill in the blanks to declare a ''Person'' class, with the ''hello()'' virtual function, and then declare a ''Student'' class that inherits from the ''Person'' class and overrides its ''hello()'' virtual function.
virtual
class
public
0
0
ans:
new 
@
start
0
Fill in the blanks to create a valid main method that outputs a text.
0
Help me out
- 2
Fill in the blanks to declare a ''Person'' class with a ''sayHello()'' pure virtual function and override it in the derived ''Student'' class.
Answer: 
class Person 
{ public:
virtual
 
void sayHello()  0;
};
class Student : 
 Person {
public:
 
 sayHello() 
{ 
void
 cout << "Student says hello"; }
};
- 3
yeah..thanks
- 5
Thank you
- 5
think you
virtual
= 
public
void
- 7
help me out  guys
- 9
Machine m = 
 
new
 
 Machine() {
   
 
m
 
Override public void 
 
 
() {
      System.out.println("Hi");
   }
}



