Dear experts,
I have this question which is probably very easy for most of you but it beats me cos I am used to Java way of creating a new instance by doing like this :
Category c = new Category();
However, I come across the below code where I am not sure why it is written this way :
public class PurchaseOrderBL
{
UniEntities db = new UniEntities();
int purchaseOrderId;
Category category;
My question is why not Category category = new Category(); ?
Here's the Category class:
public class Category
{
private int categoryId{
get { return categoryId; }
set { categoryId = value; }
}

Nitin SontakkeRank #264 · 9.6K reputationPosted Nov 13, 2016, 5:20 PM EST
Tangara GRank #4,983 · 316 reputationPosted Nov 13, 2016, 7:41 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Nov 13, 2016, 7:59 PM EST