Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

constructor error  RSS feed

 
Akshay Parekh
Greenhorn
Posts: 1
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


 
Campbell Ritchie
Marshal
Posts: 55751
163
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch
You didn't use the code button correctly, but don't worry: I corrected that and doesn't it look better.
Please always tell us the origin of your code, to prevent copyright problems.
You posted the code and didn't ask a question. You have the bad design feature of fields with the same name in superclass and subclass. That is bound to cause confusion.

Moved to different forum as not a GUI‑related question.
 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Based on the subject of the topic, I am assuming the question is ... why doesn't the code compile? ... Anyway, it may be a good idea to mention the compiler error, and what you think the issue is. After all, it is easier to learn if you attempt to figure it our yourself.

Henry
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!