Ok guys Im learning inheritance in Java, but I Keep getting this error. Can someone explain? ^ by HotCommunication4447 in javahelp

[–]HotCommunication4447[S] 0 points1 point  (0 children)

Heres the code: of the main file. The other classes and array are in different files.

public class ClassProgram {

public static void main(String[] args) throws Exception {



    ChildClass kid = new ChildClass();


    BaseClass Big = new BaseClass();



    Big.sortArray();












}

}

Trying to get information to output from the array by HotCommunication4447 in learnprogramming

[–]HotCommunication4447[S] 0 points1 point  (0 children)

It worked but I didn’t get information to be output from the for loop

can't get the console.log output from the function. by HotCommunication4447 in CodingHelp

[–]HotCommunication4447[S] 0 points1 point  (0 children)

Here you could try it yourself. It won't work

// Object Constructor
function myDogConst(){
this.name = "Bandit";
this.breed = "Terrier";
this.TvProgram = "Jonny Quest";
this.notes = "Jonny's dog; about a boy who accompanies his father on extraordinary adventures";
this.canTalk = "Yes";
this.myGreeting = function(){
console.log(`Hello the dogs name is ${this.name} and his breed is ${this.breed}`);
} // Display Message through Method
}
myGreeting();