Enter your Sign on user name and password.
» Computer Science » C# » Understanding & Creating Classes
II. Object Oriented Programming: Lecture 2 | 26:06 min
In this lesson our instructor talks about Understanding & Creating Classes
Last reply by: John SnapeSun Apr 20, 2014 3:19 AM
Post by Thuy Nguyen on April 20, 2014
I learned on Lynda.com that the return type is not part of the method signature, because C# won't know which method you want just based on the return type. But...somehow in this lecture you can have two constructors with the same parameter list and different return types...I don't know what is the right about overloaded methods anymore now. Even if you can have two methods with the same parameter type but with different return values, would it be good practice to?
Last reply by: John SnapeSun Apr 20, 2014 3:09 AM
Hi, in Java, I learned that the constructor doesn't return anything, not even void. Why would a constructor return anything in C# if it's job is to create a new object?