+ 10
No, they're entirely different things. A constructor in Java is a block of code similar to a method that's called when an instance of an object is created usually for instantiating class fields. A structure is a user-defined data type available in C that allows to combining data items of different kinds and are stored in same memory location.
17th Apr 2018, 7:23 PM
Rusty.Metal