I’ve found this declaration in the old project code:
public class Protokol:Object
Does it make any sense to inherit class from object? I am not sure if it was made on purpose or just a dirty code.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you don’t specify a class to derive from, then you automatically derive from object.
The code there is just being explicit. It’s not wrong to explicitly derive from object, but it’s not necessary to do so either as this is the default. Most people choose to omit the
: objectto keep the code clear.