5
Answers

how to send and receive a massage using xmpp in windows phon

Photo of Karthik Kumar

Karthik Kumar

9y
635
1
HI all,i need a help here i am trying to create chat app for WP8.1,using xmpp and openfire server i successfully logedin to the server.But i am stuck with the rest.
i have no idea about how to send and recive a massege,creat and join chat rooms etc..
i didnt get any sample code from google..can you help me?
thanks in advance!

Answers (5)

0
Photo of Afzaal Ahmad Zeeshan
NA 36k 2m 9y
There is no benefit or difference of them, other than that they allow us to update the values of the fields before hand. For example, we may do this:
var person = new Person();
person.Name = "Afzaal Ahmad Zeeshan"; 
person.Age = 20;
But, using the parameters with constructors allows you to pass the values at the object construction,
var person = new Person("Afzaal Ahmad Zeeshan", 20); 
Because rest of the stuff would be handled by the constructor itself:
public Person(string name, int age) {
     Name = name;
     Age = age; 
Otherwise, there is no difference in them. Plus, there is a bit of stuff for "overloading" going on. You must understand that Overloading is a concept of Object-oriented programming. I have an article about overriding and overloading, that may help you a bit more about this. 
 
http://www.c-sharpcorner.com/UploadFile/201fc1/still-do-not-get-the-difference-of-overloading-and-overridin/