Questions tagged [dynamic-class-creation]

Some Object Oriented programming languages allow creating new classes (types) in run-time (as compared to classes defined in the source code and created in compilation time)

Some examples of creating types in run-time:
C#
C++
Java
Python

78 questions
0
votes
2 answers

Change class structure at runtime or get it into a anonymous class

I have class A { String a; String b; //..getters, setters } Now I have ArrayList resultData holding objects of class A and some other classes. Basically I need this list 'resultData' to generate a Json file in some other API. Now…
pxm
  • 1,611
  • 2
  • 18
  • 34
-1
votes
1 answer

C# create class with conditional operator

I know maybe this not a good way to create class but I just wondered why if else working but conditional operator not and need implicit conversion static void Main(string[] args) { dynamic myclass; if (true) /*some condition*/ …
sonertbnc
  • 1,580
  • 16
  • 26
-1
votes
1 answer

log and track proxy creation in JVM

I have a class-loading problem in my app. We are using custom classloader and all is closed correctly but dynamic classes (com.sun.proxy.* and org.springframework.core.$Proxy) are generated pretty wildly and metaspace keeps growing to the point…
kosta5
  • 1,129
  • 3
  • 14
  • 36
1 2 3 4 5
6