impact : changing c# methods from private to public
impact : changing c# methods from private to public
Copy Code

```
This is an example
```
  

C#Copy Code

```
public partial class Default2 : System.Web.UI.Page
{
    protected void Page\_Load(object sender, EventArgs e)
    {
        //calling your derived class
        MyClass objMyClass = new MyClass();
        objMyClass.DoSomthing();
    }
}
//Abstract Class
public abstract class MyAbstractClass
{
    public abstract void DoSomthing();
}
//derived class
public class MyClass:MyAbstractClass
{
    public MyClass()
    { }
    public override void DoSomthing()
    {
        //add your implimentation here
    }
}
```
  

  

[edit] added a small comment[/edit] make your station private. No, it would be forced to switch.


Source-Experience Hi,


Yes this is the correct way to do it.


 


Since your Python issue is unrelated, please make sure to open another topic. Please keep each discussion on a single topic.




[View solution in original post](/t5/Using-Dataiku/how-to-create-project-using-public-API/m-p/7923#M4205) hi maddie,the purpose of any manipulation is to convince another person that their previously held beliefs are incorrect. one example of a way to manipulate another person is through the practice of gaslighting. think of it as someone who continually turns down the lights in a room (turning down a gas lamp) but tells another person the light is constant, it's their perception or eyesight that is affected. the purpose of gaslighting is to convince another person that they are losing their sanity. how does this transform societal values? on a large scale, if you can convince a large number of people to change their values then society will inevitably shift in its core beliefs and practices. a positive example of this is the icelandic women's protest in 1975 when every woman in the country went on strike for one day. after this protest, women were given equal wages and equal rights under the law. though this strike was not manipulation but civil rights protest, you can see the impact of change on societal values. think about efforts to take away civil rights for one specific group of people: is the language used as a weapon? is it manipulative? deceptive? how would that impact independence and personal identities? if your civil rights were taken away, say your right to vote because of another person's manipulative argument, would you feel less independent? would you feel as though your voice mattered? would you feel more valued by society or less valued by society?good luck with your homework!jessica Yes..what you said is true and depends on the person and requirement to decide which one he/she should use. Absolutely it doesn't make difference whether you use constructor or setter methods.  

If you have a constructor that accepts arguements, then you can happily initialize in the constructor itself. Otherwise you can use setter methods instead. Either way , both approaches results same.


You can say



```
 JFrame f=new JFrame("this is title");

    or

 JFRame f=new JFrame();
 f.setTitle("this is title");

```

Both are SAME.. BUT observe one important thing in the above code


In the first method , we are directly calling the constructor which accepts the title value.  

Where as in the second method , we are setting the title value using Setter method.


In the first case, if you want to change the title of the jframe sometime later in your code ,you CANT change it . You have to create a new object inorder to change the title which is not what you need.


Where as in the second code , you can change the title of the jframe at any given point of time by just calling the setter method.


So it all depends on your requirements. A few things to try.


1. Use [Variable Tables](http://odetocode.com/Articles/365.aspx) instead -> maybe the import wizard prefers that?
2. Name your return fields.


Try using the following stored proc (untested .. just thinking out loud...)



```
CREATE PROCEDURE dbo.Foo
AS

    SET NOCOUNT ON

    DECLARE @ResultTable TABLE (SomeId INTEGER)

    INSERT INTO @ResultTable
    SELECT DISTINCT Id AS Identity -- Or u can rename this field to anything...
    FROM SomeExistingTableWhichHasAnIdentityField

GO

```

Try that and see if the wizard refreshes, now.


-- 


 Attempt #2 :)


Ok .. when the EF designer/wizard/whatever fails to figure out EXACTLY what my stored proc is suppose to be returning, I usually do the following :-


1. Make sure the stored procedure doesn't exist at all in the EF designer/context, etc. (You have a clean starting point)
2. Open up your stored procedure and `/* /*` comment out *EVERYTHING* after the procedure definition.


eg..



```
ALTER PROCEDURE dbo.Foo
(
    Bar1 INT,
    Bar2 TINYINT,
    ... // whatever u have as your optional input arguments //
)
AS
    SET NOCOUNT ON

    /* 
    .... every thing in here is commented out 
    */
GO

```

Now ...
 3. Add a forced fake return in the stored proc, which (more or less) just *defines* the output structure/fields.


eg..



```
ALTER PROCEDURE dbo.Foo
(
    Bar1 INT,
    Bar2 TINYINT,
    ... // whatever u have as your optional input arguments //
)
AS
    SET NOCOUNT ON

    SELECT 1 AS Id, 1 AS UserId, 1 AS SomeOtherId, 
        CAST('AAA' AS NVARCHAR(350)) AS Name,
        -- etc etc etc..
    /* 
    .... every thing in here is commented out 
    */
GO

```

[and then](http://www.youtube.com/watch?v=K7luMp6lb9M) ...


4. Add this stored proc to your EF designer/wizard/etc... Now the correct fields should be 'determined' by the designer. AWESOME. Yes .. the values are all hardcoded .. but that's ok (so far).
5. Once your happy that EF is now updated right, go back to your stored proc, and remove all hardcoded SELECT (which we did in the above step). Now we remove the comments which we commented out the entire real code. So you should have your original stored proc, back.


... and now EF is updated and doesn't know we've changed the plumbing of your stored proc.


win :)


does this work for ya? no i can’t, but you can look up the solution on the [hints page](http://forum.freecodecamp.org/t/freecodecamp-challenge-guide-profile-lookup/18259) if you’re ready to give up.

all you need to change is the placement of this line:

return "no such contact"

right now it’s inside the for loop (before the closing }), it needs to be outside the for loop (after the closing }) as long as you write down the hierarchy manually, there’s certainly the possibility to simplify such transitive from implementations with a macro. [i’ve written one here, feel free to take a look.](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=337cce675aa28e99ac030ca783c1c155) going even further one could try to use procedural macros with global state that uses annotations on the… Since you are storing pointer to type objects why not try using polymorhism by writing a base method called displayPay() declared with the keyword virtual that would be overloaded with in each of the inherited classes. Then you can loop through the vector of pointer to StaffMembers calling the displayPay() method and the correct version of displayPay() will be called for each referenced object.