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

concrete instance????  RSS feed

 
richasri prakash
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

can anybody help me finding differnce between instance and concrete
instance.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The phrase "concrete instance" has no technical meaning. The English word "concrete" is used to mean "real" or "physical" -- I think whoever used this phrase was just trying to make a point that an instance is a real object, perhaps in contrast to a class, which is just a description of a kind of object.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think I've ever seen the term "concrete instance" before because all instances are concrete, in my opinion. In Object Oriented Programming Languages, the word "concrete" is usually used in the context of "concrete class". This is opposed to an "abstract class". The difference is that you can create instances of a concrete class with the keyword "new", but you cannot create instances of an abstract class.

I hope this helps.

Regards,

Layne
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!