I was wondering if it is possible and if so how, to create a constructor that takes three variables but will not through an error if the last two are not passed?
something like:
public void onCreate(Bundle savedInstanceState, String s1<non essential>)
{
Create more contructors
public MyCreate(Bundle savedInstanceState)
{
public MyCreate(Bundle savedInstanceState, String s1)
{
public MyCreate(Bundle savedInstanceState, String s1, String s2)
{
try to read this article on constructor overloading.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With