Code://Define the class class author{ function author(a:String,b:String,c:int) { this.name = a; this.lastname = b; this.age = c; } //Declaring the variables var name:String; var lastname:String; var age:int; } //I make a new object newBook = new author("J.R.","Tolkien",60); //I make other new object newBook = new author("Agatha","Christie",42);
in this code the variable "newBook" to save the whole object, returns to save only the last one that was created...
Any help???


Reply With Quote
Bookmarks