Link to home
Start Free TrialLog in
Avatar of rufustmac
rufustmac

asked on

OOP best practices using .NET

I am fairly new to OOP so I am asking for advise as I develop my program to make sure I understand what I am doing.

Is it better to completely initialize a class via it's constructor and then use it's properties to supply it's methods with values?  For example if I have ClassA and I create an object of classB inside ClassA, should I use classB(object initilzer) and then inside classB call it's own methods using this.methodName() and use the properties of the local class to provide values?  Or, should each function of the class accept parameters from calling classes to initialize it's local variables?
ASKER CERTIFIED SOLUTION
Avatar of geowrian
geowrian
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial