• Post Reply Bookmark Topic Watch Topic
  • New Topic

type casting of constructor  RSS feed

 
Khushdeep Singh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Type casting of constructor is possible or not?
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the name says type casting is for casting types. Ex - classes and interfaces are types. Constructors are not.
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!