Questions tagged [private-class]

Use this tag for questions related to building or using private classes.

25 questions
0
votes
0 answers

Not resolving symbols

I was wondering if anyone could tell me why in the code below, mLat and mLon are giving me errors saying that the symbol cannot be resolved? I'm pretty sure I have defined them correctly in the private class GPSCoords: private class GPSCoords { …
Phil Adams
  • 95
  • 2
  • 16
0
votes
1 answer

Right vba coding while delaing with userform buttons

Below code works well in a different module but it doesn't if used for a userform button. It doesn't print the content of the file in immediate window.I request a correction or guidance. Thank You Private Sub UploadBut_Click() Dim TextFile As…
0
votes
1 answer

Referencing a private class in JUnit

I have a scenario where I want to reference a private class - not test that class. I am using Spring JDBCTemplate to query db and using a row mapper (which is private class of dao) for mapping the resultset to my object. Test case is mocking like…
Ketan
  • 738
  • 2
  • 9
  • 20
0
votes
1 answer

Implementing AsyncTask in a new class

I am trying to use asynctask to upload entity as in Google's tutorial Mobile Assistant https://cloud.google.com/developers/articles/how-to-build-mobile-app-with-app-engine-backend-tutorial/. When I put below code in MainActivity it works but if I…
0
votes
1 answer

accessing elements of a linked list that is made up of a private custom class

in a project i am trying to get two or more agents to communicate between each other to collect things in the environment. to do this i am using a mailbox containing messages that they would respond to depending on the messages sent ebtween each…
David Parsonson
  • 585
  • 6
  • 23
0
votes
2 answers

Is the following "private static inner class" implementation correct?

I have made a public "Utils" class, where I put some general static methods that are frequently used. Inside that Utils class, I have created a private static inner class, of some "tool" that Utils supplies. (That tools is some kind of a parser for…
Hummus
  • 559
  • 1
  • 9
  • 21
-1
votes
1 answer

Is there any "public class" or "private class" in C++?

I searched it up and found out that there's no such thing as "public class" in C++ but it can be used in Java and C#. A Youtuber used a public class and the video was about some other topic so they didn't explain it. Here's the code they…
Mohsin
  • 7
  • 2
-1
votes
1 answer

How to call a private local class

So, inside a bigger class, there is a local private class that i need to use for a method later on, but i don't know how to access it... The private class, which i cannot change because it's part of the exercise, looks like this: private class…
DiegoDoe
  • 7
  • 1
-1
votes
2 answers

Can we declare class as 'private' in java?

I know that Java doesnt allow a top level class to be private however is there any way that the private classes are allowed apart from top level class?
geekNava
  • 51
  • 1
  • 4
-1
votes
1 answer

How can I use the private class in android os?

I have just downloaded the source code of Google calendar.But in the project,some private classes,such as android.provider.Calendar, are included.How can I import such classes?
PyChen
  • 63
  • 1
  • 7
1
2