• Post Reply Bookmark Topic Watch Topic
  • New Topic

Create objects  RSS feed

 
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a guy told me this way to use to create objects.First question: Is good to use this way to create objects?
Second question :as far as i know to create a object i should create empty and full constructor,right?If yes ,then a part of a code ( not writing all) should it be like this way :

Third question : if a feauture should be ONLY in Nissan lets say lights.(features i mean windows,price,door).
then:

on my main i should write : Nissan.getlights(3); this means i gave to the car 3 lights?
 
Saloon Keeper
Posts: 3331
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More like this:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!